-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_iam_user does not detect changes to permissions_boundary #16534
Comments
Same issue with the boundary for the aws_iam_role. Although if the role changed, rather than deleted, this being detected for some reason. |
I can confirm this issue as well for the |
This is still an issue. On a TF plan the Debug log shows that the permission boundary is not attached anymore(its visible for roles that have it as expected), but TF is not reacting on it in any way. Terraform v1.0.8
|
Same issue here with an Terraform v1.2.7
|
Same issue for me with
|
This issue still exists for aws_iam_role.
|
This seems to be caused by:
which don't set the state value of refresh instead of setting it to "nil". As this is a root attr, this causes the state to be copied as per: https://hashicorp.github.io/terraform-provider-aws/data-handling-and-conversion/#implicit-state-passthrough I'll try to make a PR, but not sure how to test this. |
This functionality has been released in v5.22.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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.5
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
If the user does not have the permissions_boundary set in AWS, terraform should detect this and set it.
Actual Behavior
The permissions_boundary policy is set when user is created but drift of this is not detected
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: