Open alexgagnon opened 2 months ago
Transferring this to hashicorp/terraform
since this is more a feature request for Terraform Core than something specific to the AzureRM Provider
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!
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