-
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
Fix aws_iam_instance_profile detects that the instance profile is not associated with IAM Role. #34099
Fix aws_iam_instance_profile detects that the instance profile is not associated with IAM Role. #34099
Conversation
Community NoteVoting for Prioritization
For Submitters
|
c67d587
to
56efb8b
Compare
56efb8b
to
1efd2da
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 t T=TestAccIAMInstanceProfile_ K=iam P=8
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/iam/... -v -count 1 -parallel 8 -run='TestAccIAMInstanceProfile_' -timeout 360m
=== RUN TestAccIAMInstanceProfile_tags
=== PAUSE TestAccIAMInstanceProfile_tags
=== RUN TestAccIAMInstanceProfile_tags_null
=== PAUSE TestAccIAMInstanceProfile_tags_null
=== RUN TestAccIAMInstanceProfile_tags_AddOnUpdate
=== PAUSE TestAccIAMInstanceProfile_tags_AddOnUpdate
=== RUN TestAccIAMInstanceProfile_tags_EmptyTag_OnCreate
=== PAUSE TestAccIAMInstanceProfile_tags_EmptyTag_OnCreate
=== RUN TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Add
=== RUN TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Replace
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_providerOnly
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_providerOnly
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_nonOverlapping
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_overlapping
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_overlapping
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_updateToProviderOnly
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_updateToResourceOnly
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_emptyResourceTag
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_nullOverlappingResourceTag
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_nullOverlappingResourceTag
=== RUN TestAccIAMInstanceProfile_tags_DefaultTags_nullNonOverlappingResourceTag
=== PAUSE TestAccIAMInstanceProfile_tags_DefaultTags_nullNonOverlappingResourceTag
=== RUN TestAccIAMInstanceProfile_basic
=== PAUSE TestAccIAMInstanceProfile_basic
=== RUN TestAccIAMInstanceProfile_withoutRole
=== PAUSE TestAccIAMInstanceProfile_withoutRole
=== RUN TestAccIAMInstanceProfile_nameGenerated
=== PAUSE TestAccIAMInstanceProfile_nameGenerated
=== RUN TestAccIAMInstanceProfile_namePrefix
=== PAUSE TestAccIAMInstanceProfile_namePrefix
=== RUN TestAccIAMInstanceProfile_disappears
=== PAUSE TestAccIAMInstanceProfile_disappears
=== RUN TestAccIAMInstanceProfile_Disappears_role
=== PAUSE TestAccIAMInstanceProfile_Disappears_role
=== RUN TestAccIAMInstanceProfile_launchConfiguration
=== PAUSE TestAccIAMInstanceProfile_launchConfiguration
=== CONT TestAccIAMInstanceProfile_tags
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_emptyResourceTag
=== CONT TestAccIAMInstanceProfile_nameGenerated
=== CONT TestAccIAMInstanceProfile_basic
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_providerOnly
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_updateToProviderOnly
=== CONT TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Replace
=== CONT TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_emptyResourceTag (21.78s)
=== CONT TestAccIAMInstanceProfile_tags_EmptyTag_OnCreate
--- PASS: TestAccIAMInstanceProfile_nameGenerated (24.82s)
=== CONT TestAccIAMInstanceProfile_tags_AddOnUpdate
--- PASS: TestAccIAMInstanceProfile_basic (25.00s)
=== CONT TestAccIAMInstanceProfile_tags_null
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_updateToProviderOnly (37.96s)
=== CONT TestAccIAMInstanceProfile_withoutRole
--- PASS: TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Replace (40.32s)
=== CONT TestAccIAMInstanceProfile_Disappears_role
--- PASS: TestAccIAMInstanceProfile_tags_null (33.35s)
=== CONT TestAccIAMInstanceProfile_launchConfiguration
--- PASS: TestAccIAMInstanceProfile_Disappears_role (20.96s)
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccIAMInstanceProfile_tags_EmptyTag_OnUpdate_Add (61.32s)
=== CONT TestAccIAMInstanceProfile_disappears
--- PASS: TestAccIAMInstanceProfile_withoutRole (24.00s)
=== CONT TestAccIAMInstanceProfile_namePrefix
--- PASS: TestAccIAMInstanceProfile_tags_AddOnUpdate (41.36s)
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccIAMInstanceProfile_tags_EmptyTag_OnCreate (45.85s)
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_overlapping
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_providerOnly (77.87s)
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_updateToResourceOnly
--- PASS: TestAccIAMInstanceProfile_disappears (21.43s)
=== CONT TestAccIAMInstanceProfile_tags_DefaultTags_nonOverlapping
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_nullNonOverlappingResourceTag (22.49s)
--- PASS: TestAccIAMInstanceProfile_tags (86.27s)
--- PASS: TestAccIAMInstanceProfile_namePrefix (24.63s)
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_nullOverlappingResourceTag (21.64s)
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_updateToResourceOnly (29.87s)
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_overlapping (47.52s)
--- PASS: TestAccIAMInstanceProfile_tags_DefaultTags_nonOverlapping (41.24s)
--- PASS: TestAccIAMInstanceProfile_launchConfiguration (79.48s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/iam 140.397s
This functionality has been released in v5.43.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
Changed to detect when aws_iam_instance_profile is deleted in the aws environment.
Before/After
example main.tf
Before
After
Output
Relations
Closes #32671
Closes #24974
Closes #25646
Closes #24540
Closes #1680
References
Output from Acceptance Testing