-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Clone a resource from a data source #35431
Labels
Comments
Transferring this to |
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Use case:
We have a complex terraform setup with many state files and modules spread across multiple repositories. We're trying to create a minimal subset of the infrastructure to use for application smoke testing
Options:
Proposal:
Make it easy to 'clone' a resource, overriding specific arguments (i.e. to avoid naming collisions)
I'm not sure if this is even possible as it would require knowing the resource type, but the intention is to essentially first perform a data lookup of the source, expand it into the equivalent resource type, map the fetched attributes to the arguments, but override the ones specified in the
override
block.New or Affected Resource(s)/Data Source(s)
azurerm_clone
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: