-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_opsworks_permission
fails to update own permissions
#4804
Comments
Bug fix submitted: #11379 |
…ssion level` error during self updates Reference: #4804 Output from acceptance testing before code change: ``` --- FAIL: TestAccAWSOpsworksPermission_Self (51.18s) testing.go:640: Step 1 error: errors during apply: Error: ValidationException: Unable to change own permission level. Only AllowSsh and AllowSudo allowed. ``` Output from acceptance testing after code change: ``` --- PASS: TestAccAWSOpsworksPermission_Self (64.52s) --- PASS: TestAccAWSOpsworksPermission_basic (104.39s) ```
…ssion level` error during self updates (#11379) Reference: #4804 Output from acceptance testing before code change: ``` --- FAIL: TestAccAWSOpsworksPermission_Self (51.18s) testing.go:640: Step 1 error: errors during apply: Error: ValidationException: Unable to change own permission level. Only AllowSsh and AllowSudo allowed. ``` Output from acceptance testing after code change: ``` --- PASS: TestAccAWSOpsworksPermission_Self (64.52s) --- PASS: TestAccAWSOpsworksPermission_basic (104.39s) ```
The fix for this has been merged and will release with version 2.45.0 of the Terraform AWS Provider, Thursday next week. |
This has been released in version 2.45.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 for triage. Thanks! |
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. |
When using
aws_opsworks_permission
to update (read: create works) the opsworks permissions of your own user it fails with "ValidationException: Unable to change own permission level. Only AllowSsh and AllowSudo allowed." even whenlevel
is unset.Community Note
Terraform Version
Affected Resource(s)
aws_opsworks_permission
Terraform Configuration Files
First run:
Where the
opsworks_permission_user_arn
variable is a list that contains your iam_arn and at least one other to prove the issue only applies to when making changes to your own iam user.Second run:
Where the
opsworks_permission_user_arn
variable is a list that contains your iam_arn and at least one other to prove the issue only applies to when making changes to your own iam user.Expected Behavior
All users should now be allowed to SSH in (
allow_ssh = true
) but shouldn't have sudo permissions ('allow_sudo = false').Actual Behavior
All users in the list will have had their sudo permissions revoked except your own IAM user.
Steps to Reproduce
terraform apply
allow_sudo
fromtrue
tofalse
.terraform apply
References
aws_opsworks_permission
doesn't work at all when applied to your own IAM user.aws_opsworks_permission
applies to your own user.The text was updated successfully, but these errors were encountered: