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

r/appconfig_deployment: remove waiter since deployment time is configurable #20288

Merged
merged 2 commits into from
Aug 17, 2021

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Jul 23, 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

Closes #20279

Note

  • since deployment time is dependent on that defined in the deployment's DeploymentStrategy, it is not practical to have the create CRUD operation wait as the value itself is defined by the practitioner and it can be a value as great as 24hrs (@suzuki-shunsuke points this out in more detail in It failed to create AppConfig Deployment if deployment_duration_in_minutes is over 20 #20279 🙌 ). Instead, this PR will record the deployment's state so practitioners can use that value to track progress and have their configurations complete without error.
  • The ConflictException handling is preserved in aws/config.go since it helps automate the resource creation retry but if it's preferred to remove it all together, can do 👍
  • Alternatively, we could probably make an API call to GetDeploymentStrategy to first retrieve the expected duration, and then pass that to the waiter..but perhaps even doing so would not guarantee the entire timeout duration 🤔

Output from acceptance testing:

--- PASS: TestAccAWSAppConfigDeployment_basic (23.74s)
--- PASS: TestAccAWSAppConfigDeployment_Tags (49.68s)

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/appconfig Issues and PRs that pertain to the appconfig 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. labels Jul 23, 2021
@anGie44 anGie44 changed the title r/appconfig_deployment: remove waiter since deployment time is configured by the user r/appconfig_deployment: remove waiter since deployment time is configurable Jul 23, 2021
@anGie44 anGie44 marked this pull request as ready for review July 25, 2021 18:00
@anGie44 anGie44 marked this pull request as draft July 26, 2021 15:32
@anGie44 anGie44 marked this pull request as ready for review July 29, 2021 16:09
@anGie44 anGie44 force-pushed the b-appconfig-deployment branch from 1626453 to f34e114 Compare July 29, 2021 16:09
Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

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

LGTM

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppConfigDeployment_ -timeout 180m
go: downloading github.com/aws/aws-sdk-go v1.40.20
=== RUN   TestAccAWSAppConfigDeployment_basic
=== PAUSE TestAccAWSAppConfigDeployment_basic
=== RUN   TestAccAWSAppConfigDeployment_PredefinedStrategy
=== PAUSE TestAccAWSAppConfigDeployment_PredefinedStrategy
=== RUN   TestAccAWSAppConfigDeployment_Tags
=== PAUSE TestAccAWSAppConfigDeployment_Tags
=== CONT  TestAccAWSAppConfigDeployment_basic
=== CONT  TestAccAWSAppConfigDeployment_Tags
=== CONT  TestAccAWSAppConfigDeployment_PredefinedStrategy
--- PASS: TestAccAWSAppConfigDeployment_PredefinedStrategy (145.29s)
--- PASS: TestAccAWSAppConfigDeployment_basic (216.61s)
--- PASS: TestAccAWSAppConfigDeployment_Tags (241.42s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	241.482s

@anGie44 anGie44 added this to the v3.55.0 milestone Aug 17, 2021
@anGie44 anGie44 merged commit 1039380 into main Aug 17, 2021
@anGie44 anGie44 deleted the b-appconfig-deployment branch August 17, 2021 16:51
github-actions bot pushed a commit that referenced this pull request Aug 17, 2021
@github-actions
Copy link

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

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 Sep 19, 2021
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/appconfig Issues and PRs that pertain to the appconfig 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.

It failed to create AppConfig Deployment if deployment_duration_in_minutes is over 20
2 participants