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

feat: support AppConfig Deployment Strategy #19359

Merged
merged 8 commits into from
Jul 12, 2021
Merged

feat: support AppConfig Deployment Strategy #19359

merged 8 commits into from
Jul 12, 2021

Conversation

suzuki-shunsuke
Copy link
Contributor

@suzuki-shunsuke suzuki-shunsuke commented May 13, 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 #11973 #18032 #19307 #19320 #19324

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSAppConfigDeploymentStrategy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppConfigDeploymentStrategy -timeout 180m
=== RUN   TestAccAWSAppConfigDeploymentStrategy_basic
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_basic
=== RUN   TestAccAWSAppConfigDeploymentStrategy_disappears
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_disappears
=== RUN   TestAccAWSAppConfigDeploymentStrategy_Tags
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_Tags
=== CONT  TestAccAWSAppConfigDeploymentStrategy_basic
=== CONT  TestAccAWSAppConfigDeploymentStrategy_Tags
=== CONT  TestAccAWSAppConfigDeploymentStrategy_disappears
--- PASS: TestAccAWSAppConfigDeploymentStrategy_disappears (45.54s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_basic (57.94s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_Tags (119.67s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	121.637s

Add a resource aws_appconfig_deployment_strategy to support AppConfig Deployment Strategy.

@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/appconfig Issues and PRs that pertain to the appconfig service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 13, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label May 13, 2021
@anGie44 anGie44 added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 12, 2021
@github-actions github-actions bot added the size/XL Managed by automation to categorize the size of a PR. label Jul 12, 2021
@anGie44 anGie44 self-assigned this Jul 12, 2021
@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review July 12, 2021 14:26
aws/provider.go Outdated Show resolved Hide resolved
@suzuki-shunsuke
Copy link
Contributor Author

suzuki-shunsuke commented Jul 12, 2021

@anGie44 anGie44 added this to the v3.50.0 milestone Jul 12, 2021
@suzuki-shunsuke
Copy link
Contributor Author

suzuki-shunsuke commented Jul 12, 2021

The acceptance test was failed.
I'll check.

$ make testacc TESTARGS='-run=TestAccAWSAppConfigDeploymentStrategy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppConfigDeploymentStrategy -timeout 180m
=== RUN   TestAccAWSAppConfigDeploymentStrategy_basic
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_basic
=== RUN   TestAccAWSAppConfigDeploymentStrategy_disappears
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_disappears
=== RUN   TestAccAWSAppConfigDeploymentStrategy_Tags
=== PAUSE TestAccAWSAppConfigDeploymentStrategy_Tags
=== CONT  TestAccAWSAppConfigDeploymentStrategy_basic
=== CONT  TestAccAWSAppConfigDeploymentStrategy_Tags
=== CONT  TestAccAWSAppConfigDeploymentStrategy_disappears
=== CONT  TestAccAWSAppConfigDeploymentStrategy_basic
    resource_aws_appconfig_deployment_strategy_test.go:17: Step 1/2 error: Check failed: Check 3/4 error: aws_appconfig_deployment_strategy.test: Attribute 'tags.%' expected "0", got "1"
--- FAIL: TestAccAWSAppConfigDeploymentStrategy_basic (35.20s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_disappears (48.52s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_Tags (123.25s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	125.199s
FAIL
make: *** [testacc] Error 1

Fixed. 9254447

@suzuki-shunsuke
Copy link
Contributor Author

The acceptance test was passed.
I updated the description. #19359 (comment)

@suzuki-shunsuke suzuki-shunsuke requested a review from anGie44 July 12, 2021 15:50
@anGie44
Copy link
Contributor

anGie44 commented Jul 12, 2021

Awesome thanks @suzuki-shunsuke ! I'll just be adding a commit to add default tags support and additional test coverage to get this last one merged in 👍

Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Output of acceptance test (Commercial):

--- PASS: TestAccAWSAppConfigDeploymentStrategy_disappears (39.48s)
--- PASS: TestAccAWSAppConfigHostedConfigurationVersion_disappears (54.24s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_disappears (55.17s)
--- PASS: TestAccAWSAppConfigEnvironment_disappears (57.36s)
--- PASS: TestAccAWSAppConfigApplication_basic (58.70s)
--- PASS: TestAccAWSAppConfigEnvironment_basic (59.00s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_basic (59.12s)
--- PASS: TestAccAWSAppConfigHostedConfigurationVersion_basic (61.47s)
--- PASS: TestAccAWSAppConfigApplication_updateName (97.24s)
--- PASS: TestAccAWSAppConfigApplication_disappears (41.93s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_updateDescription (100.44s)
--- PASS: TestAccAWSAppConfigEnvironment_MultipleEnvironments (117.42s)
--- PASS: TestAccAWSAppConfigEnvironment_updateName (121.66s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_basic (68.17s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_Multiple (70.77s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_Tags (128.94s)
--- PASS: TestAccAWSAppConfigApplication_Tags (132.47s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_updateFinalBakeTime (132.47s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_updateDescription (100.89s)
--- PASS: TestAccAWSAppConfigEnvironment_updateDescription (144.69s)
--- PASS: TestAccAWSAppConfigApplication_updateDescription (145.23s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_JSON (145.87s)
--- PASS: TestAccAWSAppConfigEnvironment_Monitors (150.84s)
--- PASS: TestAccAWSAppConfigEnvironment_Tags (150.85s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_updateName (94.64s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Tags (103.51s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_Lambda (148.62s)

Output of acceptance tests (GovCloud):

--- PASS: TestAccAWSAppConfigDeploymentStrategy_disappears (107.54s)
--- PASS: TestAccAWSAppConfigEnvironment_disappears (170.95s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_disappears (171.09s)
--- PASS: TestAccAWSAppConfigHostedConfigurationVersion_disappears (171.31s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_basic (182.17s)
--- PASS: TestAccAWSAppConfigApplication_basic (182.19s)
--- PASS: TestAccAWSAppConfigHostedConfigurationVersion_basic (213.56s)
--- PASS: TestAccAWSAppConfigEnvironment_basic (231.07s)
--- PASS: TestAccAWSAppConfigApplication_disappears (439.04s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_basic (440.95s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_Multiple (456.08s)
--- PASS: TestAccAWSAppConfigEnvironment_updateName (628.01s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_updateDescription (633.59s)
--- PASS: TestAccAWSAppConfigApplication_Tags (635.31s)
--- PASS: TestAccAWSAppConfigEnvironment_MultipleEnvironments (637.43s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_Tags (640.97s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_updateFinalBakeTime (641.23s)
--- PASS: TestAccAWSAppConfigEnvironment_Tags (650.85s)
--- PASS: TestAccAWSAppConfigApplication_updateName (438.47s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Tags (654.92s)
--- PASS: TestAccAWSAppConfigDeploymentStrategy_updateDescription (655.57s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_updateName (549.30s)
--- PASS: TestAccAWSAppConfigEnvironment_updateDescription (665.83s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_Lambda (502.58s)
--- PASS: TestAccAWSAppConfigEnvironment_Monitors (679.19s)
--- PASS: TestAccAWSAppConfigApplication_updateDescription (499.88s)
--- PASS: TestAccAWSAppConfigConfigurationProfile_Validators_JSON (697.76s)

@anGie44 anGie44 merged commit 0d4e7e7 into hashicorp:main Jul 12, 2021
@suzuki-shunsuke suzuki-shunsuke deleted the feat/appconfig_deployment_strategy branch July 12, 2021 20:01
@github-actions
Copy link

This functionality has been released in v3.50.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 Aug 15, 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. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/appconfig Issues and PRs that pertain to the appconfig service. size/XL Managed by automation to categorize the size of a PR. size/XXL 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