-
Notifications
You must be signed in to change notification settings - Fork 397
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
ecs_cluster capacity provider strategy #1640
ecs_cluster capacity provider strategy #1640
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
@karcadia this PR contains the following merge commits: Please rebase your branch to remove these commits. |
Now a cluster will only show change if the actual content of each nested dictionary has changed instead of checking if they match exactly which was always causing change.
Rework the comparison of two lists of dictionaries to determine if an update to the cluster is needed.
Assuming you did not provide "purge_capacity_providers: True", this behavior is correct, at least as far as I understood the purge_capacity_providers addition. It will show changed false unless it actually updates the cp/cps which requires the purge_capacity_providers argument. Let me know if this should be implemented differently. Thanks. Update: I see now. Integration test updated to include purge_capacity_providers True. |
@karcadia ah yes, you're right. now I hit another error. when the same cluster is requested, it returns a
|
…ge_capacity_providers.
Backport to stable-5: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 3937464 on top of patchback/backports/stable-5/3937464f94add69462c14a48b84c6c2e672c1350/pr-1640 Backporting merged PR #1640 into main
🤖 @patchback |
ecs_cluster capacity provider strategy SUMMARY Fixes ansible-collections#770 - Add AWS ECS_Cluster Capacity Provider Strategy Support ISSUE TYPE Feature Pull Request COMPONENT NAME ecs_cluster ADDITIONAL INFORMATION When creating or updating an ECS Cluster, configure the capacity providers and capacity provider strategy as provided by the user. Given playbook task: - name: Create an ECS Cluster with Capacity Providers ecs_cluster: name: default state: present capacity_providers: - FARGATE - FARGATE_SPOT capacity_provider_strategy: - capacity_provider: FARGATE base: 1 weight: 1 - capacity_provider: FARGATE_SPOT weight: 100 Previously would throw "Unsupported parameter" and no other parameter exists to expose these features. Now you should see changed: [localhost] with the resultant created ECS Cluster having the same providers and provider_strategy fields as provided by the user. Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Justin McCormick <None> Reviewed-by: Alina Buzachis <None>
ecs_cluster: add default value to doc SUMMARY missing default value in the docs section of #1640 not released yet. ISSUE TYPE Docs Pull Request COMPONENT NAME ecs_cluster Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None>
ecs_cluster: add default value to doc SUMMARY missing default value in the docs section of #1640 not released yet. ISSUE TYPE Docs Pull Request COMPONENT NAME ecs_cluster Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None>
… (#1678) backport stable-5 - ecs_cluster capacity provider strategy #1640 #1673 backport #1640 ecs_cluster capacity provider strategy #1640 (comment) backport #1676 waiting for #1676 SUMMARY Fixes #770 - Add AWS ECS_Cluster Capacity Provider Strategy Support ISSUE TYPE Feature Pull Request COMPONENT NAME ecs_cluster ADDITIONAL INFORMATION When creating or updating an ECS Cluster, configure the capacity providers and capacity provider strategy as provided by the user. Given playbook task: name: Create an ECS Cluster with Capacity Providers ecs_cluster: name: default state: present capacity_providers: - FARGATE - FARGATE_SPOT capacity_provider_strategy: - capacity_provider: FARGATE base: 1 weight: 1 - capacity_provider: FARGATE_SPOT weight: 100 Previously would throw "Unsupported parameter" and no other parameter exists to expose these features. Now you should see changed: [localhost] with the resultant created ECS Cluster having the same providers and provider_strategy fields as provided by the user. Reviewed-by: Markus Bergholz [email protected] Reviewed-by: Justin McCormick Reviewed-by: Alina Buzachis SUMMARY ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
Bump 2024 deprecations from dates to release versions SUMMARY Bump 2024 deprecations from dates to release versions ISSUE TYPE Docs Pull Request COMPONENT NAME plugins/modules/ecs_cluster.py plugins/modules/ecs_service.py plugins/modules/glue_connection.py ADDITIONAL INFORMATION See also: #518 #1640 #1716 Reviewed-by: Alina Buzachis
SUMMARY
Fixes #770 - Add AWS ECS_Cluster Capacity Provider Strategy Support
ISSUE TYPE
COMPONENT NAME
ecs_cluster
ADDITIONAL INFORMATION
When creating or updating an ECS Cluster, configure the capacity providers and capacity provider strategy as provided by the user.
Given playbook task:
Previously would throw "Unsupported parameter" and no other parameter exists to expose these features.
Now you should see changed: [localhost] with the resultant created ECS Cluster having the same providers and provider_strategy fields as provided by the user.