-
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
r/aws_iam_user_policy_attachments_exclusive: new resource #39731
Conversation
Community NoteVoting for Prioritization
For Submitters
|
2f1e42c
to
f379744
Compare
This resource will allow practitioners to retain exclusive ownership of customer managed policy attachments to IAM users via Terraform. ```console % make testacc PKG=iam TESTS=TestAccIAMUserPolicyAttachmentsExclusive_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.2 test ./internal/service/iam/... -v -count 1 -parallel 20 -run='TestAccIAMUserPolicyAttachmentsExclusive_' -timeout 360m 2024/10/15 14:35:20 Initializing Terraform AWS Provider... --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_empty (14.88s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_disappears_Policy (17.33s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_basic (17.45s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_disappears_User (17.57s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_outOfBandRemoval (25.10s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_outOfBandAddition (25.12s) --- PASS: TestAccIAMUserPolicyAttachmentsExclusive_multiple (25.78s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/iam 30.795s ```
f379744
to
6a6d0be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccIAMUserPolicyAttachmentsExclusive_' PKG=iam ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/iam/... -v -count 1 -parallel 3 -run=TestAccIAMUserPolicyAttachmentsExclusive_ -timeout 360m
2024/10/16 08:09:33 Initializing Terraform AWS Provider...
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_basic
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_basic
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_disappears_User
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_disappears_User
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_disappears_Policy
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_disappears_Policy
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_multiple
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_multiple
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_empty
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_empty
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_outOfBandRemoval
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_outOfBandRemoval
=== RUN TestAccIAMUserPolicyAttachmentsExclusive_outOfBandAddition
=== PAUSE TestAccIAMUserPolicyAttachmentsExclusive_outOfBandAddition
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_basic
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_empty
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_outOfBandAddition
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_empty (10.54s)
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_outOfBandRemoval
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_basic (13.18s)
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_disappears_Policy
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_outOfBandAddition (18.54s)
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_multiple
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_disappears_Policy (10.46s)
=== CONT TestAccIAMUserPolicyAttachmentsExclusive_disappears_User
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_outOfBandRemoval (17.29s)
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_disappears_User (10.07s)
--- PASS: TestAccIAMUserPolicyAttachmentsExclusive_multiple (19.46s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/iam 43.327s
This functionality has been released in v5.72.1 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! |
Description
This resource will allow practitioners to retain exclusive ownership of customer managed policy attachments to IAM users via Terraform.
Relations
Relates #39376
Closes #39380
Output from Acceptance Testing