You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first post, so, if I do some mistake (naming, leak of informations, etc) claim it!
I trying to create groups iam (on aws) by a TF module.
This module take a var list with names of groups in param (ex: names=["dev", "ops"]).
The module will create these groups (with the count).
The groups creation work. But, when I try to change a name of one group in the var list (ex: names=["develop", "ops"]), the modification work but the TF state is... Not updated.
This issue was originally opened by @inceptor as hashicorp/terraform#14692. It was migrated here as part of the provider split. The original body of the issue is below.
Hello,
This is my first post, so, if I do some mistake (naming, leak of informations, etc) claim it!
I trying to create groups iam (on aws) by a TF module.
This module take a var list with names of groups in param (ex: names=["dev", "ops"]).
The module will create these groups (with the count).
The groups creation work. But, when I try to change a name of one group in the var list (ex: names=["develop", "ops"]), the modification work but the TF state is... Not updated.
Terraform Version
v9.4
Affected Resource(s)
Terraform Configuration Files
main.tf
module group
Example of tfvars
Original :
names = ["dev", "tester", "ops"]
Modification :
names = ["develop", "test", "ops"]
Debug Output
Before modification :
names = ["team-billing", "team-exploit", "**team-feme**", "team-infra", "team-tel", "team-prem"]
terraform apply
After modification :
names = ["team-billing", "team-exploit", "**team-fem**", "team-infra", "team-tel", "team-prem"]
terraform apply
If I do terraform show, there is no trace of team-fem or groups.2
Panic Output
If I redo an apply :
names = ["team-billing", "team-exploit", "**team-fem**", "team-infra", "team-tel", "team-prem"]
terraform apply
Expected Behavior
Just a group renaming without error
Actual Behavior
Error, the group "EntityAlreadyExists".
In AWS, the group is well renamed.
But the TF state is not update or no trace of the ressource ?
Steps to Reproduce
terraform apply
terraform apply
terraform apply
there is an error "EntityAlreadyExists"Important Factoids
None.
Thank you for your help !
The text was updated successfully, but these errors were encountered: