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

resource/aws_ecs_capacity_provider: Add support for ECS capacity provider update #16942

Merged
merged 4 commits into from
Jun 23, 2021

Conversation

shuheiktgw
Copy link
Collaborator

@shuheiktgw shuheiktgw commented Jan 3, 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 #16943

Release note for CHANGELOG:

resource/aws_ecs_capacity_provider: Add support for ECS capacity provider update

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSEcsCapacityProvider_*'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEcsCapacityProvider_* -timeout 120m
=== RUN   TestAccAWSEcsCapacityProvider_basic
=== PAUSE TestAccAWSEcsCapacityProvider_basic
=== RUN   TestAccAWSEcsCapacityProvider_disappears
=== PAUSE TestAccAWSEcsCapacityProvider_disappears
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScaling
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScaling
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== RUN   TestAccAWSEcsCapacityProvider_Tags
=== PAUSE TestAccAWSEcsCapacityProvider_Tags
=== CONT  TestAccAWSEcsCapacityProvider_basic
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScaling
=== CONT  TestAccAWSEcsCapacityProvider_disappears
=== CONT  TestAccAWSEcsCapacityProvider_Tags
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScalingPartial (125.44s)
--- PASS: TestAccAWSEcsCapacityProvider_disappears (137.43s)
--- PASS: TestAccAWSEcsCapacityProvider_basic (144.27s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScaling (193.10s)
--- PASS: TestAccAWSEcsCapacityProvider_Tags (306.73s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	308.731s

Thank you for your review! 👍

@shuheiktgw shuheiktgw requested a review from a team as a code owner January 3, 2021 06:43
@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/ecs Issues and PRs that pertain to the ecs service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jan 3, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 3, 2021
@shuheiktgw shuheiktgw changed the title resource/aws_ecs_service: Add support for ECS capacity provider update resource/aws_ecs_capacity_provider: Add support for ECS capacity provider update Jan 3, 2021
@shuheiktgw
Copy link
Collaborator Author

This PR conflicts with #16941

@eddgrant
Copy link

eddgrant commented Feb 3, 2021

Hey folks,

My team is really keen to see this PR make its way through to a release 🙏 . I thought it might be beneficial to the review process if I were to build the AWS Provider from this branch and do some manual testing. It took me a bit of twoing and froing to figure out how to get Terraform to use the locally built provider binary but I have completed some basic testing and can happily confirm that I was able to update the following properties in-place, without requiring resource replacement:

  1. managed_termination_protection
  2. maximum_scaling_step_size
  3. minimum_scaling_step_size
  4. status
  5. target_capacity

Demonstrative screenshots:

Capacity Provider: Before state

image

Terraform apply: Proposed changes

image

Terraform output

image

Capacity Provider: After State

image

Hope this is helpful, happy to do any more testing if it'll help get this through to inclusion in a release.

@bflad
Copy link
Contributor

bflad commented Feb 18, 2021

Ready for rebase now that #16941 has been merged. 👍

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 18, 2021
@shuheiktgw
Copy link
Collaborator Author

Thank you! I'll update the PR!

@shuheiktgw
Copy link
Collaborator Author

@bflad I've updated the PR so would you review it?

@wendtek
Copy link

wendtek commented Mar 17, 2021

Is there any other testing or review that needs to be done on this PR? It would make workflows with capacity providers significantly more viable.

@legal90
Copy link

legal90 commented Mar 31, 2021

@shuheiktgw Thank you very much for implementing this! Could you please rebase you branch once again and fix conflicts?

Hopefully, @bflad can review it soon ;)

@shuheiktgw shuheiktgw force-pushed the ecs_capacity_provider_update branch from 448b7df to 8e0a760 Compare April 3, 2021 01:10
@shuheiktgw
Copy link
Collaborator Author

Thank you for pinging me, @legal90! I've rebased it again 👍

@hlarsen
Copy link

hlarsen commented Apr 22, 2021

Anything anyone can do to help move this along? I (and it appears plenty of others) would love to see this merged...

@ewbankkit ewbankkit force-pushed the ecs_capacity_provider_update branch from 8e0a760 to 13d6a44 Compare June 23, 2021 20:06
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Jun 23, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEcsCapacityProvider_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEcsCapacityProvider_ -timeout 180m
=== RUN   TestAccAWSEcsCapacityProvider_basic
=== PAUSE TestAccAWSEcsCapacityProvider_basic
=== RUN   TestAccAWSEcsCapacityProvider_disappears
=== PAUSE TestAccAWSEcsCapacityProvider_disappears
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScaling
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScaling
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== RUN   TestAccAWSEcsCapacityProvider_Tags
=== PAUSE TestAccAWSEcsCapacityProvider_Tags
=== CONT  TestAccAWSEcsCapacityProvider_basic
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== CONT  TestAccAWSEcsCapacityProvider_Tags
=== CONT  TestAccAWSEcsCapacityProvider_disappears
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScaling
--- PASS: TestAccAWSEcsCapacityProvider_disappears (59.40s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScalingPartial (60.01s)
--- PASS: TestAccAWSEcsCapacityProvider_basic (70.51s)
--- PASS: TestAccAWSEcsCapacityProvider_Tags (99.70s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScaling (122.22s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	126.208s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEcsCapacityProvider_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEcsCapacityProvider_ -timeout 180m
=== RUN   TestAccAWSEcsCapacityProvider_basic
=== PAUSE TestAccAWSEcsCapacityProvider_basic
=== RUN   TestAccAWSEcsCapacityProvider_disappears
=== PAUSE TestAccAWSEcsCapacityProvider_disappears
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScaling
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScaling
=== RUN   TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== PAUSE TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== RUN   TestAccAWSEcsCapacityProvider_Tags
=== PAUSE TestAccAWSEcsCapacityProvider_Tags
=== CONT  TestAccAWSEcsCapacityProvider_basic
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScalingPartial
=== CONT  TestAccAWSEcsCapacityProvider_ManagedScaling
=== CONT  TestAccAWSEcsCapacityProvider_Tags
=== CONT  TestAccAWSEcsCapacityProvider_disappears
--- PASS: TestAccAWSEcsCapacityProvider_basic (62.11s)
--- PASS: TestAccAWSEcsCapacityProvider_disappears (62.52s)
--- PASS: TestAccAWSEcsCapacityProvider_Tags (98.56s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScalingPartial (105.01s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScaling (145.98s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	149.215s

@ewbankkit
Copy link
Contributor

@shuheiktgw Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit e395c03 into hashicorp:main Jun 23, 2021
@github-actions github-actions bot added this to the v3.47.0 milestone Jun 23, 2021
@github-actions
Copy link

This functionality has been released in v3.47.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 Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ecs Issues and PRs that pertain to the ecs service. size/XL 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.

resource/aws_ecs_capacity_provider: Add support for ECS capacity provider update
7 participants