-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
aws_cloudformation_stack resources no longer have an ARN in plan.json #423
Comments
Hmm, this is weird. Manual |
And it seems that the relevant code in terraform AWS provider hasn't changed in years. So this is really strange unless |
In #415 i changed the way how CF stacks are being imported. Now they are imported by its name, which is the correct way according to TF. Will take a look into the plan.json, perhaps there’s something more to adjust. |
"Because UUIDs are so 1980s and so Microsoft" - Amazon/Hashicorp Joint Standards Committee Seriously though, what's their rationale? Got a link to where they say it? I just (EDIT: it is also tagged with a name reference so perhaps the ARN reference is legacy stuff?) |
@rulatir Terraform is all driven by the AWS API. You can read more about it in https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStacks.html
Because of that and fact that currently the tfstate file is inheritibly incorrect:
Because of those facts, it is better to refer to the CF template by its identifier. In a more broad sense, Terraform as well as AWS doesn't strongly define what is an identifier of a resource. It's up to a service (I assume internal development team) to define those specifics. I agree it's not making the development of tools that manage the resources easy because each resources must be uniquely checked for details of the practices. |
I just rebuilt terraformer from master, and now when I do
terraformer plan
, theaws_cloudformation_stack
resources inplan.json
no longer contain the whole ARN. I can synthesize the ARN from the ID just fine since account ID is the only extra info needed, but the problem is that the bare ID seems to be just an arbitrary string with no characteristics indicating that it is an ID of a cloudformation stack, and I must basically downgrade to accept arbitrary strings as resource IDs.The good thing about ARNs is that they are easily identifiable as resource references. I believe they should be used wherever possible. It would facilitate writing schema-less resource graph crawlers: if an object property looks like ARN, it is a graph edge.
The text was updated successfully, but these errors were encountered: