-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Implement create_when_missing #37260
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Have you signed the CLA already but the status is still pending? Recheck it. |
1 similar comment
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Have you signed the CLA already but the status is still pending? Recheck it. |
Changelog WarningCurrently this PR would target a v1.13 release. Please add a changelog entry for in the .changes/v1.13 folder, or discuss which release you'd like to target with your reviewer. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label. |
Hi @raphaelfff, I don't think there's been any team conversation about this, so there is not currently a recommended solution to implement. More broadly, this feature is going to require protocol changes for this to work correctly, which is the reason it's not possible to do at this time. The Once we have an updated protocol in place for import, in coordination with the provider development teams, than we can implement a solution to this feature request. |
I was going off of the comment linked, this has been stalled for a while now, and i have a pretty strong need for this feature (seems like I'm not alone!) |
It would first require working with the plugin development teams to add a new protocol to communicate the additional information, then wait for the major public providers to implement the functionality themselves for each resource to be imported. There may be other options available to reach the same end goal however, but that all still requires internal collaboration and development before we might see any changes. Once there is a change in status, the linked issue will be updated. |
Why do we need some extra plugin dev?
What am i missing here ? |
The protocol changes are really because the The provider has no context as to why The internal work around that possibility is already in progress. Another aspect of the idea is that the feature needs to be useful for more than a single hard-coded identifier. Since most single instance data sources can't return an ID (and have no access to expose the new |
Hum i see, is there a ticket tracking this? (trying to gauge an ETA, because i m really stuck on this atm...) |
Actually in my plan i meant to say: call the provider.Import, not .Read, to be able to support the identity workflow |
The linked issue is what tracks the feature externally. The IBM/Hashicorp roadmaps are not publicly available. Your reference to the |
Right, yeah i see, my use-case is really focused around k8s, i want to "get or create" a deployment, I can refer to it by id (which is |
Implement the recommendation in #33633 (comment)