-
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
resource/aws_iam_virtual_mfa_device: Correctly sweep associated devices and add enable_date
and user_name
attributes
#32462
Conversation
…AccessDenied error
Community NoteVoting for Prioritization
For Submitters
|
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 PKG=iam TESTS=TestAccIAMVirtualMFADevice_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/iam/... -v -count 1 -parallel 20 -run='TestAccIAMVirtualMFADevice_' -timeout 180m
--- PASS: TestAccIAMVirtualMFADevice_disappears (16.68s)
--- PASS: TestAccIAMVirtualMFADevice_basic (21.73s)
--- PASS: TestAccIAMVirtualMFADevice_path (21.73s)
--- PASS: TestAccIAMVirtualMFADevice_tags (45.33s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/iam 48.721s
This functionality has been released in v5.8.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 pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Attempting to sweep an
aws_iam_virtual_mfa_device
that is associated with an IAM User fails with the errorAdds
user_name
attribute needed for MFA deactivation andenable_date
.Also fixes panic in OpsWorks user sweeper.
Output from Acceptance Testing