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/aws_ecs_service: add triggers attribute to force update in-place #25840

Merged
merged 6 commits into from
Nov 17, 2022

Conversation

obataku
Copy link
Contributor

@obataku obataku commented Jul 15, 2022

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 #13931 #13528

Output from acceptance testing:

TODO

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/ecs Issues and PRs that pertain to the ecs service. needs-triage Waiting for first response or review from a maintainer. size/XS Managed by automation to categorize the size of a PR. labels Jul 15, 2022
@obataku obataku marked this pull request as ready for review July 15, 2022 19:36
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @obataku 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@obataku
Copy link
Contributor Author

obataku commented Jul 18, 2022

would like some input regarding this approach to resolving the aforementioned issues and guidance with the PR process. thanks!

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jul 21, 2022
@obataku
Copy link
Contributor Author

obataku commented Aug 17, 2022

bump?

@tony-engineering
Copy link

+1

@YakDriver
Copy link
Member

This makes perfect sense. At present, the force_new_deployment argument will only cause a new deployment if there are also changes to the capacity_provider_strategy. If you want a new deployment without those changes, this is a solution used elsewhere.

@YakDriver YakDriver self-assigned this Nov 17, 2022
@YakDriver YakDriver force-pushed the f-aws_ecs_service-update-triggers branch from 55b60be to a34fac9 Compare November 17, 2022 18:21
@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed size/XS Managed by automation to categorize the size of a PR. labels Nov 17, 2022
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make testacc TESTS=TestAccECSService_ PKG=ecs                          
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 20 -run='TestAccECSService_'  -timeout 180m
--- PASS: TestAccECSService_PlacementStrategy_missing (7.03s)
--- PASS: TestAccECSService_DaemonSchedulingStrategy_basic (55.16s)
--- PASS: TestAccECSService_iamRole (71.14s)
--- PASS: TestAccECSService_DeploymentValues_minZeroMaxOneHundred (97.94s)
--- PASS: TestAccECSService_DeploymentControllerType_external (44.82s)
--- PASS: TestAccECSService_DeploymentValues_basic (104.16s)
--- PASS: TestAccECSService_deploymentCircuitBreaker (105.90s)
--- PASS: TestAccECSService_clusterName (106.01s)
--- PASS: TestAccECSService_PlacementConstraints_emptyExpression (106.14s)
--- PASS: TestAccECSService_forceNewDeployment (121.77s)
--- PASS: TestAccECSService_forceNewDeploymentTriggers (123.29s)
--- PASS: TestAccECSService_basic (125.27s)
--- PASS: TestAccECSService_renamedCluster (130.23s)
--- PASS: TestAccECSService_familyAndRevision (143.08s)
--- PASS: TestAccECSService_PlacementStrategy_basic (147.82s)
--- PASS: TestAccECSService_PlacementStrategy_unnormalized (81.46s)
--- PASS: TestAccECSService_LaunchTypeFargate_basic (193.95s)
--- PASS: TestAccECSService_LaunchTypeEC2_network (110.21s)
--- PASS: TestAccECSService_executeCommand (93.87s)
--- PASS: TestAccECSService_alb (248.66s)
--- PASS: TestAccECSService_multipleTargetGroups (249.23s)
--- PASS: TestAccECSService_loadBalancerChanges (252.00s)
--- PASS: TestAccECSService_CapacityProviderStrategy_forceNewDeployment (153.12s)
--- PASS: TestAccECSService_LaunchTypeFargate_updateWaitForSteadyState (175.60s)
--- PASS: TestAccECSService_Tags_managed (89.69s)
--- PASS: TestAccECSService_DaemonSchedulingStrategy_setDeploymentMinimum (34.52s)
--- PASS: TestAccECSService_LaunchTypeFargate_waitForSteadyState (157.43s)
--- PASS: TestAccECSService_disappears (189.93s)
--- PASS: TestAccECSService_healthCheckGracePeriodSeconds (291.13s)
--- PASS: TestAccECSService_Tags_propagate (111.49s)
--- PASS: TestAccECSService_CapacityProviderStrategy_basic (195.77s)
--- PASS: TestAccECSService_LaunchTypeFargate_platformVersion (172.75s)
--- PASS: TestAccECSService_basicImport (201.58s)
--- PASS: TestAccECSService_PlacementConstraints_basic (83.94s)
--- PASS: TestAccECSService_replicaSchedulingStrategy (77.56s)
--- PASS: TestAccECSService_Tags_basic (113.02s)
--- PASS: TestAccECSService_DeploymentControllerType_codeDeploy (274.41s)
--- PASS: TestAccECSService_ServiceRegistries_basic (161.40s)
--- PASS: TestAccECSService_ServiceRegistries_container (161.00s)
--- PASS: TestAccECSService_ServiceRegistries_changes (287.61s)
--- PASS: TestAccECSService_DeploymentControllerType_codeDeployUpdateDesiredCountAndHealthCheckGracePeriod (418.60s)
--- PASS: TestAccECSService_CapacityProviderStrategy_multiple (879.55s)
--- PASS: TestAccECSService_CapacityProviderStrategy_update (1007.88s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ecs	1009.677s

@YakDriver YakDriver merged commit e8e7053 into hashicorp:main Nov 17, 2022
@github-actions github-actions bot added this to the v4.40.0 milestone Nov 17, 2022
@github-actions
Copy link

This functionality has been released in v4.40.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 Dec 18, 2022
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/ecs Issues and PRs that pertain to the ecs 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.

force_new_deployment argument for aws_ecs_service resources doesn't "force new deployment on each apply"
4 participants