terraform-provider-aws
terraform-provider-aws copied to clipboard
[Bug]: aws_identitystore_group description not updating
Terraform Core Version
1.3.5
AWS Provider Version
4.43.0
Affected Resource(s)
- aws_identitystore_group
Expected Behavior
The description of the group should be updated when changed
Actual Behavior
The description is not updated
Relevant Error/Panic Output Snippet
terraform apply --auto-approve
data.aws_organizations_organization.this: Reading...
data.aws_ssoadmin_instances.this: Reading...
data.aws_ssoadmin_instances.this: Read complete after 0s [id=ca-central-1]
aws_identitystore_group.test_gab: Refreshing state... [id=<redacted>]
data.aws_organizations_organization.this: Read complete after 1s [id=<redacted>]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_identitystore_group.test_gab will be updated in-place
~ resource "aws_identitystore_group" "test_gab" {
~ description = "test_gab" -> "change me"
id = "<redacted>"
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
aws_identitystore_group.test_gab: Modifying... [id=<redacted>]
aws_identitystore_group.test_gab: Modifications complete after 0s [id=<redacted>]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
terraform plan
data.aws_organizations_organization.this: Reading...
data.aws_ssoadmin_instances.this: Reading...
data.aws_ssoadmin_instances.this: Read complete after 0s [id=ca-central-1]
aws_identitystore_group.test_gab: Refreshing state... [id=<redacted>]
data.aws_organizations_organization.this: Read complete after 1s [id=<redacted>]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_identitystore_group.test_gab will be updated in-place
~ resource "aws_identitystore_group" "test_gab" {
~ description = "test_gab" -> "change me"
id = "<redacted>"
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Terraform Configuration Files
main.tf
provider "aws" {}
data "aws_ssoadmin_instances" "this" {}
locals {
identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]
}
resource "aws_identitystore_group" "test_gab" {
identity_store_id = local.identity_store_id
display_name = "test_gab"
description = "initial description"
}
Steps to Reproduce
- Create a SSO group using the
main.tfabove withterraform apply - Change the description in
main.tf - Apply the changes again:
terraform apply - The description will not have changed, can be confirmed in the AWS Console and a
terraform planwill yield the same changes over and over.
Debug Output
https://gist.github.com/gab-despreslaberge/8c653c187b253a6d8c3772568ef5d80f
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
Same issue here. Deleting and recreating the group solves it temporarily.
I am creating permission-sets in the same apply, with the same description, pulled from a variable. The permission-sets deploy successfully.
Any update on this? I am facing the same issue.
same issue here
Changing the display_name of the resource forces the replacement. It's a dirty way to force the update of the description, but it's working.
/push
same issue here
This issue is still exists. v1.5.1
Issue still happens with latest tf and provider version.
- Terraform v1.5.6
- hashicorp/aws 5.15.0
This functionality has been released in v5.23.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.