aws_security_group erroneously wants to recreate with provider v3.0.0 #14494
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.28
Affected Resource(s)
Terraform Configuration Files
https://gist.github.com/grimm26/14cd526ebd45ca22d442bbf5fb80059e
Debug Output
https://gist.github.com/grimm26/98c1acbdb5a7381cab9a6574ef938487
Expected Behavior
No changes.
Actual Behavior
terraoform wanted to recreate teh aws_security_group because it claimed the name_prefix was new. It is not. If I init with aws v2.70.0 a
terraform plan
shows no changes. If I init with aws provider v3.0.0, a plan shows name_prefix is being added and forcing a delete/create.Steps to Reproduce
I haven't been able to reproduce this from scratch, and I haven't had this problem on every use of my VPC module. Basically, all I do is change the version pin to allow v3.x and this problem crops up in some cases.
Important Factoids
We wrap terraform with terragrunt.
The text was updated successfully, but these errors were encountered: