Modification of aws_launch_template doesn't trigger modification of aws_cloudformation_stack when aws_launch_template.*.latest_version is used in this aws_cloudformation_stack #5273
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
CloudFormation Stack should get updated.
Actual Behavior
Only aws_launch_template got updated. aws_cloudformation_stack would get updated if I run
terraform apply
again.Steps to Reproduce
Create terraform file with aws_cloudformation_stack and aws_launch_template. Use
aws_launch_template.*.latest_version
in aws_cloudformation_stack.Execute
terraform apply
.Change something (eg.
vpc_security_group_ids
orimage_id
) in aws_launch_template.Execute
terraform apply
.Result: Only aws_launch_template will get changed.
Execute
terraform apply
again.Result: aws_cloudformation_stack will get changed.
The text was updated successfully, but these errors were encountered: