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

Fix IAM User Policy No Such Entity Exception Handling #7069

Conversation

teraken0509
Copy link
Contributor

Changes proposed in this pull request:

  • aws_iam_user_policy skip error when NoSuchEntity error occured while deleting.
  • Add test case

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSIAMUserPolicy_disappears'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSIAMUserPolicy_disappears -timeout 120m
=== RUN   TestAccAWSIAMUserPolicy_disappears
=== PAUSE TestAccAWSIAMUserPolicy_disappears
=== CONT  TestAccAWSIAMUserPolicy_disappears
--- PASS: TestAccAWSIAMUserPolicy_disappears (23.51s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws    23.570s

@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/iam Issues and PRs that pertain to the iam service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jan 9, 2019
@teraken0509 teraken0509 force-pushed the feature/fix-iam-user-policy-no-such-entity-exception branch from 5bfbeeb to 252139f Compare January 9, 2019 11:05
@bflad bflad added the bug Addresses a defect in current functionality. label Jan 9, 2019
@bflad bflad added this to the v1.55.0 milestone Jan 9, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @kterada0509! 🚀

--- PASS: TestAccAWSIAMUserPolicy_disappears (7.19s)
--- PASS: TestAccAWSIAMUserPolicy_importBasic (8.26s)
--- PASS: TestAccAWSIAMUserPolicy_namePrefix (12.67s)
--- PASS: TestAccAWSIAMUserPolicy_generatedName (12.96s)
--- PASS: TestAccAWSIAMUserPolicy_basic (13.06s)
--- PASS: TestAccAWSIAMUserPolicy_multiplePolicies (23.48s)

@bflad bflad merged commit cc0d212 into hashicorp:master Jan 9, 2019
pull bot pushed a commit to KernelPanicAUS/terraform-provider-aws that referenced this pull request Jan 9, 2019
@bflad
Copy link
Contributor

bflad commented Jan 10, 2019

This has been released in version 1.55.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@teraken0509 teraken0509 deleted the feature/fix-iam-user-policy-no-such-entity-exception branch March 5, 2020 14:06
@ghost
Copy link

ghost commented Mar 5, 2020

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. 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
Development

Successfully merging this pull request may close these issues.

2 participants