Skip to content
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

iam/role: Fix spurious diffs with inline_policy ordering #22099

Merged
merged 5 commits into from
Dec 8, 2021

Conversation

YakDriver
Copy link
Member

@YakDriver YakDriver commented Dec 8, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #21968
Fixes #19444

Output from acceptance testing (us-west-2):

% make testacc TESTS=TestAccIAMRole PKG=iam
TF_ACC=1 go test ./internal/service/iam/... -v -count 1 -parallel 20 -run='TestAccIAMRole' -timeout 180m
--- PASS: TestAccIAMRolePolicy_invalidJSON (4.27s)
--- PASS: TestAccIAMRolesDataSource_nonExistentPathPrefix (23.85s)
--- PASS: TestAccIAMRolesDataSource_basic (25.41s)
--- PASS: TestAccIAMRoleDataSource_basic (31.72s)
--- PASS: TestAccIAMRolesDataSource_pathPrefix (32.82s)
--- PASS: TestAccIAMRolesDataSource_nameRegexAndPathPrefix (32.83s)
--- PASS: TestAccIAMRolesDataSource_nameRegex (32.85s)
--- PASS: TestAccIAMRole_InlinePolicy_empty (33.05s)
--- PASS: TestAccIAMRole_badJSON (5.21s)
--- PASS: TestAccIAMRole_policiesForceDetach (39.23s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionIgnored (53.38s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionRemovedEmpty (56.74s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionRemovedEmpty (56.80s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionRemoved (57.57s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandRemovalAddedBack (57.62s)
--- PASS: TestAccIAMRole_disappears (25.52s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionRemoved (62.95s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandRemovalAddedBack (62.99s)
--- PASS: TestAccIAMRole_maxSessionDuration (65.89s)
--- PASS: TestAccIAMRole_namePrefix (34.99s)
--- PASS: TestAccIAMRole_nameGenerated (31.70s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionIgnored (73.21s)
--- PASS: TestAccIAMRole_tags (53.78s)
--- PASS: TestAccIAMRole_InlinePolicy_ignoreOrder (79.13s)
--- PASS: TestAccIAMRolePolicy_Policy_invalidResource (15.11s)
--- PASS: TestAccIAMRolePolicy_disappears (24.46s)
--- PASS: TestAccIAMRole_InlinePolicy_basic (78.43s)
--- PASS: TestAccIAMRolePolicyAttachment_Disappears_role (21.44s)
--- PASS: TestAccIAMRole_basic (27.42s)
--- PASS: TestAccIAMRole_ManagedPolicy_basic (85.61s)
--- PASS: TestAccIAMRolePolicyAttachment_disappears (23.69s)
--- PASS: TestAccIAMRole_testNameChange (54.29s)
--- PASS: TestAccIAMRolePolicy_basic (48.21s)
--- PASS: TestAccIAMRoleDataSource_tags (22.99s)
--- PASS: TestAccIAMRolePolicy_policyOrder (34.37s)
--- PASS: TestAccIAMRolePolicy_generatedName (40.02s)
--- PASS: TestAccIAMRole_basicWithDescription (62.64s)
--- PASS: TestAccIAMRolePolicy_namePrefix (39.04s)
--- PASS: TestAccIAMRolePolicyAttachment_basic (37.61s)
--- PASS: TestAccIAMRole_permissionsBoundary (84.64s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/iam	111.476s

Output from acceptance testing (GovCloud):

--- PASS: TestAccIAMRole_badJSON (6.19s)
--- PASS: TestAccIAMRole_basic (45.18s)
--- PASS: TestAccIAMRole_basicWithDescription (76.34s)
--- PASS: TestAccIAMRole_disappears (30.23s)
--- PASS: TestAccIAMRole_InlinePolicy_basic (88.88s)
--- PASS: TestAccIAMRole_InlinePolicy_empty (30.90s)
--- PASS: TestAccIAMRole_InlinePolicy_ignoreOrder (80.71s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionIgnored (76.55s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionRemoved (60.75s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandAdditionRemovedEmpty (60.38s)
--- PASS: TestAccIAMRole_InlinePolicy_outOfBandRemovalAddedBack (60.85s)
--- PASS: TestAccIAMRole_ManagedPolicy_basic (94.05s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionIgnored (30.18s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionRemoved (69.40s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandAdditionRemovedEmpty (60.48s)
--- PASS: TestAccIAMRole_ManagedPolicy_outOfBandRemovalAddedBack (69.40s)
--- PASS: TestAccIAMRole_maxSessionDuration (63.65s)
--- PASS: TestAccIAMRole_nameGenerated (36.35s)
--- PASS: TestAccIAMRole_namePrefix (45.20s)
--- PASS: TestAccIAMRole_permissionsBoundary (122.71s)
--- PASS: TestAccIAMRole_policiesForceDetach (50.79s)
--- PASS: TestAccIAMRole_tags (62.42s)
--- PASS: TestAccIAMRole_testNameChange (69.78s)

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/iam Issues and PRs that pertain to the iam service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/iam Issues and PRs that pertain to the iam service. labels Dec 8, 2021
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/iam Issues and PRs that pertain to the iam service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Dec 8, 2021
@YakDriver YakDriver added this to the Roadmap milestone Dec 8, 2021
@YakDriver YakDriver merged commit 931120e into main Dec 8, 2021
@YakDriver YakDriver deleted the b-iam-role-inline-policy-diff branch December 8, 2021 04:43
@github-actions github-actions bot modified the milestones: Roadmap, v3.69.0 Dec 8, 2021
@YakDriver YakDriver self-assigned this Dec 8, 2021
github-actions bot pushed a commit that referenced this pull request Dec 8, 2021
@github-actions
Copy link

This functionality has been released in v3.69.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!

@github-actions
Copy link

github-actions bot commented Jun 4, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/iam Issues and PRs that pertain to the iam service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
1 participant