Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use managementPolicies: ["Observe"] in vault_identity_entity #20

Open
karthikaskannan opened this issue Oct 4, 2023 · 3 comments

Comments

@karthikaskannan
Copy link

karthikaskannan commented Oct 4, 2023

Hi Team,

I want to get the entity_id of an existing entity in vault using alias_mount_accessor and alias_name. I can achieve this in terraform using data source. Similarly how can I get the entity id by using managementPolicies: ["Observe"] as mentioned in this docs.

@jaylevin
Copy link
Contributor

jaylevin commented Apr 4, 2024

I don't think this is possible because Crossplane observe-only resources currently have some missing feature parity with Terraform's data source. Currently it is mandatory to provide the crossplane.io/external-name annotation to import an observe-only resource. Since the external name of these resources is a random ID generated by Vault, there's no way to import the observe-only resource without first knowing the external name.

There is an open issue to improve this feature in Crossplane: crossplane/crossplane#4141

@ytsarev
Copy link
Member

ytsarev commented Apr 5, 2024

Until it is implemented in core Crossplane you can use provider-terraform based workaround with data sources, please see examples below

@jaylevin
Copy link
Contributor

jaylevin commented Apr 5, 2024

Until it is implemented in core Crossplane you can use provider-terraform based workaround with data sources, please see examples below

Thank you @ytsarev ! I did not know this was possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants