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_cluster: Remove capacity_providers and default_capacity_provider_strategy attributes #31346

Merged
merged 9 commits into from
May 11, 2023

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented May 11, 2023

Description

Removes the deprecated capacity_providers and default_capacity_provider_strategy attributes.

Relations

Closes #31174.
Relates #22783.

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccECSCluster_\|TestAccECSTaskSet_\|TestAccECSService_' PKG=ecs ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 3  -run=TestAccECSCluster_\|TestAccECSTaskSet_\|TestAccECSService_ -timeout 180m
=== RUN   TestAccECSCluster_basic
=== PAUSE TestAccECSCluster_basic
=== RUN   TestAccECSCluster_disappears
=== PAUSE TestAccECSCluster_disappears
=== RUN   TestAccECSCluster_tags
=== PAUSE TestAccECSCluster_tags
=== RUN   TestAccECSCluster_serviceConnectDefaults
=== PAUSE TestAccECSCluster_serviceConnectDefaults
=== RUN   TestAccECSCluster_containerInsights
=== PAUSE TestAccECSCluster_containerInsights
=== RUN   TestAccECSCluster_configuration
=== PAUSE TestAccECSCluster_configuration
=== RUN   TestAccECSService_basic
=== PAUSE TestAccECSService_basic
=== RUN   TestAccECSService_basicImport
=== PAUSE TestAccECSService_basicImport
=== RUN   TestAccECSService_disappears
=== PAUSE TestAccECSService_disappears
=== RUN   TestAccECSService_PlacementStrategy_unnormalized
=== PAUSE TestAccECSService_PlacementStrategy_unnormalized
=== RUN   TestAccECSService_CapacityProviderStrategy_basic
=== PAUSE TestAccECSService_CapacityProviderStrategy_basic
=== RUN   TestAccECSService_CapacityProviderStrategy_forceNewDeployment
=== PAUSE TestAccECSService_CapacityProviderStrategy_forceNewDeployment
=== RUN   TestAccECSService_CapacityProviderStrategy_update
=== PAUSE TestAccECSService_CapacityProviderStrategy_update
=== RUN   TestAccECSService_familyAndRevision
=== PAUSE TestAccECSService_familyAndRevision
=== RUN   TestAccECSService_healthCheckGracePeriodSeconds
=== PAUSE TestAccECSService_healthCheckGracePeriodSeconds
=== RUN   TestAccECSService_iamRole
=== PAUSE TestAccECSService_iamRole
=== RUN   TestAccECSService_DeploymentControllerType_codeDeploy
=== PAUSE TestAccECSService_DeploymentControllerType_codeDeploy
=== RUN   TestAccECSService_DeploymentControllerType_codeDeployUpdateDesiredCountAndHealthCheckGracePeriod
=== PAUSE TestAccECSService_DeploymentControllerType_codeDeployUpdateDesiredCountAndHealthCheckGracePeriod
=== RUN   TestAccECSService_DeploymentControllerType_external
=== PAUSE TestAccECSService_DeploymentControllerType_external
=== RUN   TestAccECSService_Alarms
=== PAUSE TestAccECSService_Alarms
=== RUN   TestAccECSService_DeploymentValues_basic
=== PAUSE TestAccECSService_DeploymentValues_basic
=== RUN   TestAccECSService_DeploymentValues_minZeroMaxOneHundred
=== PAUSE TestAccECSService_DeploymentValues_minZeroMaxOneHundred
=== RUN   TestAccECSService_deploymentCircuitBreaker
=== PAUSE TestAccECSService_deploymentCircuitBreaker
=== RUN   TestAccECSService_loadBalancerChanges
=== PAUSE TestAccECSService_loadBalancerChanges
=== RUN   TestAccECSService_clusterName
=== PAUSE TestAccECSService_clusterName
=== RUN   TestAccECSService_alb
=== PAUSE TestAccECSService_alb
=== RUN   TestAccECSService_multipleTargetGroups
=== PAUSE TestAccECSService_multipleTargetGroups
=== RUN   TestAccECSService_forceNewDeployment
=== PAUSE TestAccECSService_forceNewDeployment
=== RUN   TestAccECSService_forceNewDeploymentTriggers
=== PAUSE TestAccECSService_forceNewDeploymentTriggers
=== RUN   TestAccECSService_PlacementStrategy_basic
=== PAUSE TestAccECSService_PlacementStrategy_basic
=== RUN   TestAccECSService_PlacementStrategy_missing
=== PAUSE TestAccECSService_PlacementStrategy_missing
=== RUN   TestAccECSService_PlacementConstraints_basic
=== PAUSE TestAccECSService_PlacementConstraints_basic
=== RUN   TestAccECSService_PlacementConstraints_emptyExpression
=== PAUSE TestAccECSService_PlacementConstraints_emptyExpression
=== RUN   TestAccECSService_LaunchTypeFargate_basic
=== PAUSE TestAccECSService_LaunchTypeFargate_basic
=== RUN   TestAccECSService_LaunchTypeFargate_platformVersion
=== PAUSE TestAccECSService_LaunchTypeFargate_platformVersion
=== RUN   TestAccECSService_LaunchTypeFargate_waitForSteadyState
=== PAUSE TestAccECSService_LaunchTypeFargate_waitForSteadyState
=== RUN   TestAccECSService_LaunchTypeFargate_updateWaitForSteadyState
=== PAUSE TestAccECSService_LaunchTypeFargate_updateWaitForSteadyState
=== RUN   TestAccECSService_LaunchTypeEC2_network
=== PAUSE TestAccECSService_LaunchTypeEC2_network
=== RUN   TestAccECSService_DaemonSchedulingStrategy_basic
=== PAUSE TestAccECSService_DaemonSchedulingStrategy_basic
=== RUN   TestAccECSService_DaemonSchedulingStrategy_setDeploymentMinimum
=== PAUSE TestAccECSService_DaemonSchedulingStrategy_setDeploymentMinimum
=== RUN   TestAccECSService_replicaSchedulingStrategy
=== PAUSE TestAccECSService_replicaSchedulingStrategy
=== RUN   TestAccECSService_ServiceRegistries_basic
=== PAUSE TestAccECSService_ServiceRegistries_basic
=== RUN   TestAccECSService_ServiceRegistries_container
=== PAUSE TestAccECSService_ServiceRegistries_container
=== RUN   TestAccECSService_ServiceRegistries_changes
=== PAUSE TestAccECSService_ServiceRegistries_changes
=== RUN   TestAccECSService_ServiceRegistries_removal
=== PAUSE TestAccECSService_ServiceRegistries_removal
=== RUN   TestAccECSService_ServiceConnect_basic
=== PAUSE TestAccECSService_ServiceConnect_basic
=== RUN   TestAccECSService_ServiceConnect_full
=== PAUSE TestAccECSService_ServiceConnect_full
=== RUN   TestAccECSService_ServiceConnect_ingressPortOverride
=== PAUSE TestAccECSService_ServiceConnect_ingressPortOverride
=== RUN   TestAccECSService_ServiceConnect_remove
=== PAUSE TestAccECSService_ServiceConnect_remove
=== RUN   TestAccECSService_Tags_basic
=== PAUSE TestAccECSService_Tags_basic
=== RUN   TestAccECSService_Tags_managed
=== PAUSE TestAccECSService_Tags_managed
=== RUN   TestAccECSService_Tags_propagate
=== PAUSE TestAccECSService_Tags_propagate
=== RUN   TestAccECSService_executeCommand
=== PAUSE TestAccECSService_executeCommand
=== RUN   TestAccECSTaskSet_basic
=== PAUSE TestAccECSTaskSet_basic
=== RUN   TestAccECSTaskSet_withExternalId
=== PAUSE TestAccECSTaskSet_withExternalId
=== RUN   TestAccECSTaskSet_withScale
=== PAUSE TestAccECSTaskSet_withScale
=== RUN   TestAccECSTaskSet_disappears
=== PAUSE TestAccECSTaskSet_disappears
=== RUN   TestAccECSTaskSet_withCapacityProviderStrategy
=== PAUSE TestAccECSTaskSet_withCapacityProviderStrategy
=== RUN   TestAccECSTaskSet_withAlb
=== PAUSE TestAccECSTaskSet_withAlb
=== RUN   TestAccECSTaskSet_withLaunchTypeFargate
=== PAUSE TestAccECSTaskSet_withLaunchTypeFargate
=== RUN   TestAccECSTaskSet_withLaunchTypeFargateAndPlatformVersion
=== PAUSE TestAccECSTaskSet_withLaunchTypeFargateAndPlatformVersion
=== RUN   TestAccECSTaskSet_withServiceRegistries
=== PAUSE TestAccECSTaskSet_withServiceRegistries
=== RUN   TestAccECSTaskSet_tags
=== PAUSE TestAccECSTaskSet_tags
=== CONT  TestAccECSCluster_basic
=== CONT  TestAccECSService_deploymentCircuitBreaker
=== CONT  TestAccECSService_ServiceRegistries_removal
--- PASS: TestAccECSCluster_basic (36.08s)
=== CONT  TestAccECSTaskSet_tags
--- PASS: TestAccECSService_deploymentCircuitBreaker (80.06s)
=== CONT  TestAccECSTaskSet_withServiceRegistries
--- PASS: TestAccECSTaskSet_tags (98.58s)
=== CONT  TestAccECSTaskSet_withLaunchTypeFargateAndPlatformVersion
--- PASS: TestAccECSService_ServiceRegistries_removal (142.57s)
=== CONT  TestAccECSTaskSet_withLaunchTypeFargate
--- PASS: TestAccECSTaskSet_withLaunchTypeFargate (60.51s)
=== CONT  TestAccECSTaskSet_withAlb
--- PASS: TestAccECSTaskSet_withServiceRegistries (135.42s)
=== CONT  TestAccECSTaskSet_withCapacityProviderStrategy
--- PASS: TestAccECSTaskSet_withLaunchTypeFargateAndPlatformVersion (96.28s)
=== CONT  TestAccECSTaskSet_disappears
--- PASS: TestAccECSTaskSet_disappears (66.54s)
=== CONT  TestAccECSService_Tags_basic
--- PASS: TestAccECSTaskSet_withCapacityProviderStrategy (144.83s)
=== CONT  TestAccECSService_ServiceConnect_remove
--- PASS: TestAccECSTaskSet_withAlb (194.82s)
=== CONT  TestAccECSService_ServiceConnect_ingressPortOverride
--- PASS: TestAccECSService_Tags_basic (107.80s)
=== CONT  TestAccECSService_ServiceConnect_full
--- PASS: TestAccECSService_ServiceConnect_remove (173.18s)
=== CONT  TestAccECSService_ServiceConnect_basic
--- PASS: TestAccECSService_ServiceConnect_ingressPortOverride (163.87s)
=== CONT  TestAccECSService_CapacityProviderStrategy_forceNewDeployment
--- PASS: TestAccECSService_ServiceConnect_full (160.65s)
=== CONT  TestAccECSService_DeploymentValues_minZeroMaxOneHundred
--- PASS: TestAccECSService_DeploymentValues_minZeroMaxOneHundred (84.24s)
=== CONT  TestAccECSService_DeploymentValues_basic
--- PASS: TestAccECSService_ServiceConnect_basic (162.51s)
=== CONT  TestAccECSService_Alarms
--- PASS: TestAccECSService_CapacityProviderStrategy_forceNewDeployment (156.47s)
=== CONT  TestAccECSService_DeploymentControllerType_external
--- PASS: TestAccECSService_DeploymentValues_basic (82.20s)
=== CONT  TestAccECSService_DeploymentControllerType_codeDeployUpdateDesiredCountAndHealthCheckGracePeriod
--- PASS: TestAccECSService_DeploymentControllerType_external (43.19s)
=== CONT  TestAccECSService_DeploymentControllerType_codeDeploy
--- PASS: TestAccECSService_Alarms (72.43s)
=== CONT  TestAccECSService_iamRole
--- PASS: TestAccECSService_iamRole (67.17s)
=== CONT  TestAccECSService_healthCheckGracePeriodSeconds
--- PASS: TestAccECSService_DeploymentControllerType_codeDeploy (238.23s)
=== CONT  TestAccECSService_familyAndRevision
--- PASS: TestAccECSService_familyAndRevision (85.16s)
=== CONT  TestAccECSService_CapacityProviderStrategy_update
--- PASS: TestAccECSService_healthCheckGracePeriodSeconds (254.97s)
=== CONT  TestAccECSService_LaunchTypeFargate_basic
--- PASS: TestAccECSService_DeploymentControllerType_codeDeployUpdateDesiredCountAndHealthCheckGracePeriod (412.17s)
=== CONT  TestAccECSService_ServiceRegistries_changes
--- PASS: TestAccECSService_LaunchTypeFargate_basic (150.72s)
=== CONT  TestAccECSService_ServiceRegistries_container
--- PASS: TestAccECSService_CapacityProviderStrategy_update (305.77s)
=== CONT  TestAccECSService_ServiceRegistries_basic
--- PASS: TestAccECSService_ServiceRegistries_container (157.16s)
=== CONT  TestAccECSService_replicaSchedulingStrategy
--- PASS: TestAccECSService_ServiceRegistries_changes (262.22s)
=== CONT  TestAccECSService_DaemonSchedulingStrategy_setDeploymentMinimum
--- PASS: TestAccECSService_replicaSchedulingStrategy (73.37s)
=== CONT  TestAccECSService_DaemonSchedulingStrategy_basic
--- PASS: TestAccECSService_ServiceRegistries_basic (166.83s)
=== CONT  TestAccECSService_LaunchTypeEC2_network
--- PASS: TestAccECSService_DaemonSchedulingStrategy_setDeploymentMinimum (93.81s)
=== CONT  TestAccECSService_LaunchTypeFargate_updateWaitForSteadyState
--- PASS: TestAccECSService_LaunchTypeEC2_network (86.42s)
=== CONT  TestAccECSService_LaunchTypeFargate_waitForSteadyState
--- PASS: TestAccECSService_DaemonSchedulingStrategy_basic (95.61s)
=== CONT  TestAccECSService_LaunchTypeFargate_platformVersion
--- PASS: TestAccECSService_LaunchTypeFargate_updateWaitForSteadyState (165.69s)
=== CONT  TestAccECSService_basic
--- PASS: TestAccECSService_LaunchTypeFargate_waitForSteadyState (156.32s)
=== CONT  TestAccECSService_CapacityProviderStrategy_basic
--- PASS: TestAccECSService_LaunchTypeFargate_platformVersion (152.16s)
=== CONT  TestAccECSService_PlacementStrategy_unnormalized
--- PASS: TestAccECSService_basic (85.21s)
=== CONT  TestAccECSService_disappears
--- PASS: TestAccECSService_PlacementStrategy_unnormalized (83.24s)
=== CONT  TestAccECSService_basicImport
--- PASS: TestAccECSService_basicImport (199.80s)
=== CONT  TestAccECSTaskSet_basic
--- PASS: TestAccECSTaskSet_basic (60.81s)
=== CONT  TestAccECSTaskSet_withScale
--- PASS: TestAccECSService_CapacityProviderStrategy_basic (198.44s)
=== CONT  TestAccECSTaskSet_withExternalId
--- PASS: TestAccECSService_disappears (183.24s)
=== CONT  TestAccECSService_executeCommand
--- PASS: TestAccECSTaskSet_withScale (71.40s)
=== CONT  TestAccECSService_Tags_propagate
--- PASS: TestAccECSTaskSet_withExternalId (50.71s)
=== CONT  TestAccECSService_forceNewDeploymentTriggers
--- PASS: TestAccECSService_executeCommand (87.54s)
=== CONT  TestAccECSService_PlacementConstraints_emptyExpression
--- PASS: TestAccECSService_Tags_propagate (98.34s)
=== CONT  TestAccECSService_PlacementConstraints_basic
--- PASS: TestAccECSService_forceNewDeploymentTriggers (86.02s)
=== CONT  TestAccECSService_PlacementStrategy_missing
--- PASS: TestAccECSService_PlacementStrategy_missing (1.64s)
=== CONT  TestAccECSService_PlacementStrategy_basic
--- PASS: TestAccECSService_PlacementConstraints_emptyExpression (83.32s)
=== CONT  TestAccECSService_Tags_managed
--- PASS: TestAccECSService_PlacementConstraints_basic (87.74s)
=== CONT  TestAccECSCluster_serviceConnectDefaults
--- PASS: TestAccECSService_PlacementStrategy_basic (98.82s)
=== CONT  TestAccECSCluster_configuration
--- PASS: TestAccECSCluster_configuration (51.80s)
=== CONT  TestAccECSCluster_tags
--- PASS: TestAccECSCluster_tags (49.61s)
=== CONT  TestAccECSCluster_containerInsights
--- PASS: TestAccECSService_Tags_managed (156.00s)
=== CONT  TestAccECSService_alb
--- PASS: TestAccECSCluster_serviceConnectDefaults (139.12s)
=== CONT  TestAccECSCluster_disappears
--- PASS: TestAccECSCluster_disappears (22.87s)
=== CONT  TestAccECSService_forceNewDeployment
--- PASS: TestAccECSCluster_containerInsights (67.05s)
=== CONT  TestAccECSService_clusterName
--- PASS: TestAccECSService_forceNewDeployment (73.97s)
=== CONT  TestAccECSService_multipleTargetGroups
--- PASS: TestAccECSService_clusterName (72.35s)
=== CONT  TestAccECSService_loadBalancerChanges
--- PASS: TestAccECSService_alb (234.16s)
--- PASS: TestAccECSService_loadBalancerChanges (191.40s)
--- PASS: TestAccECSService_multipleTargetGroups (225.76s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ecs	2591.346s

@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/ecs Issues and PRs that pertain to the ecs service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. labels May 11, 2023
@ewbankkit ewbankkit added the breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. label May 11, 2023
@ewbankkit ewbankkit added this to the v5.0.0 milestone May 11, 2023
@ewbankkit ewbankkit merged commit 231dcde into prerelease/5.x May 11, 2023
45 checks passed
@ewbankkit ewbankkit deleted the remove-aws_ecs_cluster.capacity_providers branch May 11, 2023 21:05
github-actions bot pushed a commit that referenced this pull request May 11, 2023
@github-actions
Copy link

This functionality has been released in v5.0.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 Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. documentation Introduces or discusses updates to documentation. 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.

None yet

1 participant