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

Add timeouts for create and delete and refactor to use isAWSErr #9157

Merged
merged 3 commits into from
Jul 9, 2019
Merged

Add timeouts for create and delete and refactor to use isAWSErr #9157

merged 3 commits into from
Jul 9, 2019

Conversation

res0nance
Copy link
Contributor

@res0nance res0nance commented Jun 27, 2019

Add timeouts for create and delete and refactor to use isAWSErr
This contribution is made by Autodesk Inc. under the terms of the Mozilla Public License (MPL) version 2.0.

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Fixes #8043
Release note for CHANGELOG:

- Add timeout option for ebs snapshots

Output from acceptance testing:

root@3687e71f78a7:/aws# make testacc TEST=./aws TESTARGS='-run=TestAccAWSEBSSnapshot_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSEBSSnapshot_ -timeout 120m
=== RUN   TestAccAWSEBSSnapshot_basic
=== PAUSE TestAccAWSEBSSnapshot_basic
=== RUN   TestAccAWSEBSSnapshot_withDescription
=== PAUSE TestAccAWSEBSSnapshot_withDescription
=== RUN   TestAccAWSEBSSnapshot_withKms
=== PAUSE TestAccAWSEBSSnapshot_withKms
=== CONT  TestAccAWSEBSSnapshot_basic
=== CONT  TestAccAWSEBSSnapshot_withKms
=== CONT  TestAccAWSEBSSnapshot_withDescription
--- PASS: TestAccAWSEBSSnapshot_withDescription (92.29s)
--- PASS: TestAccAWSEBSSnapshot_withKms (149.37s)
--- PASS: TestAccAWSEBSSnapshot_basic (168.76s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       168.832s
...

This contribution is made by Autodesk Inc. under the terms of the Mozilla Public License (MPL) version 2.0.
@res0nance res0nance requested a review from a team June 27, 2019 06:20
@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 27, 2019
@res0nance
Copy link
Contributor Author

Log from sample test run snapid redacted

aws_ebs_snapshot.default: Still creating... (20m0s elapsed)
aws_ebs_snapshot.default: Still creating... (20m10s elapsed)
aws_ebs_snapshot.default: Still creating... (20m20s elapsed)
aws_ebs_snapshot.default: Still creating... (20m30s elapsed)
aws_ebs_snapshot.default: Still creating... (20m40s elapsed)
aws_ebs_snapshot.default: Still creating... (20m50s elapsed)
aws_ebs_snapshot.default: Still creating... (21m0s elapsed)
aws_ebs_snapshot.default: Still creating... (21m10s elapsed)
aws_ebs_snapshot.default: Still creating... (21m20s elapsed)
aws_ebs_snapshot.default: Creation complete after 21m27s (ID: snap-xxxx)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

snapshot_id = snap-xxxx

@ghost ghost added the documentation Introduces or discusses updates to documentation. label Jul 3, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 9, 2019
@bflad bflad added this to the v2.19.0 milestone Jul 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 @res0nance 🚀

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSEBSSnapshot_withDescription (35.30s)
--- PASS: TestAccAWSEBSSnapshot_withKms (69.61s)
--- PASS: TestAccAWSEBSSnapshot_basic (116.31s)

Output from acceptance testing in AWS GovCloud (US) (test failure unrelated):

--- PASS: TestAccAWSEBSSnapshot_withDescription (28.75s)
--- FAIL: TestAccAWSEBSSnapshot_withKms (47.25s)
--- PASS: TestAccAWSEBSSnapshot_basic (75.41s)

@bflad bflad merged commit b90dddd into hashicorp:master Jul 9, 2019
bflad added a commit that referenced this pull request Jul 9, 2019
@res0nance res0nance deleted the ebs-snapshot-timeout branch July 9, 2019 03:14
@bflad
Copy link
Contributor

bflad commented Jul 11, 2019

This has been released in version 2.19.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 for triage. Thanks!

@ghost
Copy link

ghost commented Nov 2, 2019

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 Nov 2, 2019
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. enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service. size/S 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.

Expose timeout configuration for aws ebs snapshot
2 participants