Open mpostument opened 2 years ago
Additionally, if a resource was created with a VPC initially, and that VPC configuration is later removed, the expectation is that the Canary would no longer be in a VPC. This change does not occur.
Additionally, if a resource was created with a VPC initially, and that VPC configuration is later removed, the expectation is that the Canary would no longer be in a VPC. This change does not occur.
This also happens the other way around: adding VPC configuration on a canary already deployed does not lead to any update of the resource in AWS.
Running terraform plan
always brings the VPC configuration as a change though terraform apply
, while exiting properly, does not update.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
VPC config is added to canary test
Actual Behavior
No VPC config added to canary test
Steps to Reproduce
terraform apply
to apply VPC config. No error are shownCheck canary on AWS. VPC config is not added
Run terraform apply again will show that vpc config is need to be added
Important Factoids
Issue was with role permissions, once role was fixed VPC config was added. But i would expect terraform to fail when it not able to create VPC config.
If resources is created terraform failing with error, but when trying to add vpc to existing canary no error displayed
References
0000