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

ecs_cluster capacity provider strategy #1640

Conversation

karcadia
Copy link
Contributor

@karcadia karcadia commented Jan 5, 2023

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.

@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Jan 5, 2023
@github-actions
Copy link

github-actions bot commented Jan 5, 2023

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

✔️ ansible-galaxy-importer SUCCESS in 4m 16s
✔️ build-ansible-collection SUCCESS in 5m 49s
ansible-test-sanity-docker-devel FAILURE in 9m 41s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 25s (non-voting)
ansible-test-sanity-docker-stable-2.12 FAILURE in 8m 56s
ansible-test-sanity-docker-stable-2.13 FAILURE in 9m 43s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 26s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 57s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 33s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 43s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 29s
✔️ ansible-test-changelog SUCCESS in 2m 15s
✔️ ansible-test-splitter SUCCESS in 2m 59s
✔️ integration-community.aws-1 SUCCESS in 6m 19s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

✔️ ansible-galaxy-importer SUCCESS in 4m 10s
✔️ build-ansible-collection SUCCESS in 5m 18s
ansible-test-sanity-docker-devel FAILURE in 9m 29s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 49s (non-voting)
ansible-test-sanity-docker-stable-2.12 FAILURE in 9m 44s
ansible-test-sanity-docker-stable-2.13 FAILURE in 9m 09s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 16s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 8m 10s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 06s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 00s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 24s
✔️ ansible-test-changelog SUCCESS in 2m 11s
✔️ ansible-test-splitter SUCCESS in 3m 21s
✔️ integration-community.aws-1 SUCCESS in 8m 39s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 03s
✔️ build-ansible-collection SUCCESS in 7m 00s
✔️ ansible-test-sanity-docker-devel SUCCESS in 9m 25s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 10m 16s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 26s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 11s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 11m 08s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 56s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 33s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 39s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 06s
✔️ ansible-test-changelog SUCCESS in 2m 46s
✔️ ansible-test-splitter SUCCESS in 2m 28s
✔️ integration-community.aws-1 SUCCESS in 5m 10s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

✔️ ansible-galaxy-importer SUCCESS in 4m 10s
✔️ build-ansible-collection SUCCESS in 6m 32s
ansible-test-sanity-docker-devel FAILURE in 9m 43s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 29s (non-voting)
ansible-test-sanity-docker-stable-2.12 FAILURE in 10m 17s
ansible-test-sanity-docker-stable-2.13 FAILURE in 9m 34s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 32s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 7m 38s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 35s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 59s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 8m 37s
✔️ ansible-test-changelog SUCCESS in 2m 23s
✔️ ansible-test-splitter SUCCESS in 2m 26s
✔️ integration-community.aws-1 SUCCESS in 5m 18s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 16s
✔️ build-ansible-collection SUCCESS in 5m 08s
✔️ ansible-test-sanity-docker-devel SUCCESS in 10m 51s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 17s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 08s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 38s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 11m 43s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 20s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 29s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 21s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 5m 56s
✔️ ansible-test-changelog SUCCESS in 2m 29s
✔️ ansible-test-splitter SUCCESS in 2m 30s
✔️ integration-community.aws-1 SUCCESS in 5m 56s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@ansibullbot
Copy link

@karcadia this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibullbot ansibullbot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html and removed community_review labels Jan 10, 2023
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.
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 55s
✔️ build-ansible-collection SUCCESS in 5m 37s
ansible-test-sanity-docker-devel FAILURE in 8m 53s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 44s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 20m 42s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 29s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 10m 02s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 43s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 46s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 37s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 15s
✔️ ansible-test-changelog SUCCESS in 2m 21s
✔️ ansible-test-splitter SUCCESS in 2m 35s
✔️ integration-community.aws-1 SUCCESS in 5m 24s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@karcadia
Copy link
Contributor Author

karcadia commented Jan 18, 2023

Thanks for fixing it. Unfortunetaly the [tiny test playbook from above is failing now](https://github.com/ansible- collections/community.aws/pull/1640#issuecomment-1380664771) while adding the capacity providers to an existing ecs cluster.
"In order to maintain backwards compatibility, the capacity providers and strategy will not be changed by default.",
"Set purge_capacity_providers to True to override this behavior."
TASK [check that ecs_cluster was correctly updated] *****************************************************************************************************************************
fatal: [localhost]: FAILED! => {
"assertion": "ecs_cluster_update.changed",
"changed": false,
"evaluated_to": false,
"msg": "Assertion failed"
}

@markuman

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.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 12m 37s
✔️ build-ansible-collection SUCCESS in 5m 20s
ansible-test-sanity-docker-devel FAILURE in 10m 45s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 47s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 37s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 19m 45s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 39s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 27m 28s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 58s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 43s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 12s
✔️ ansible-test-changelog SUCCESS in 2m 47s
✔️ ansible-test-splitter SUCCESS in 2m 59s
✔️ integration-community.aws-1 SUCCESS in 5m 35s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@markuman
Copy link
Member

@karcadia ah yes, you're right.

now I hit another error. when the same cluster is requested, it returns a change, even if nothing was changed.

TASK [create same ECS cluster (should do nothing)] ******************************************************************************************************************************
changed: [localhost]

TASK [debug] ********************************************************************************************************************************************************************
ok: [localhost] => {
    "ecs_cluster_again": {
        "changed": true,
        "cluster": {
            "activeServicesCount": 0,
            "capacityProviders": [],
            "clusterArn": "arn:aws:ecs:eu-central-1:12345677889:cluster/pxoveaxt",
            "clusterName": "pxoveaxt",
            "defaultCapacityProviderStrategy": [],
            "pendingTasksCount": 0,
            "registeredContainerInstancesCount": 0,
            "runningTasksCount": 0,
            "settings": [
                {
                    "name": "containerInsights",
                    "value": "disabled"
                }
            ],
            "statistics": [],
            "status": "ACTIVE",
            "tags": []
        },
        "failed": false
    }
}

TASK [check that ecs_cluster did not change] ************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
    "assertion": "not ecs_cluster_again.changed",
    "changed": false,
    "evaluated_to": false,
    "msg": "Assertion failed"
}

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 43s
✔️ build-ansible-collection SUCCESS in 5m 33s
ansible-test-sanity-docker-devel FAILURE in 13m 01s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 32s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 42s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 05s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 59s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 00s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 54s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 48s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 59s
✔️ ansible-test-changelog SUCCESS in 2m 17s
✔️ ansible-test-splitter SUCCESS in 2m 45s
✔️ integration-community.aws-1 SUCCESS in 5m 27s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 17s
✔️ build-ansible-collection SUCCESS in 5m 26s
ansible-test-sanity-docker-devel FAILURE in 9m 02s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 10m 25s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 19s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 22s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 12m 19s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 55s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 58s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 43s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 6m 36s
✔️ ansible-test-changelog SUCCESS in 2m 37s
✔️ ansible-test-splitter SUCCESS in 2m 58s
✔️ integration-community.aws-1 SUCCESS in 9m 19s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label Jan 23, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 3m 42s
✔️ build-ansible-collection SUCCESS in 5m 29s
ansible-test-sanity-docker-devel FAILURE in 10m 05s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 9m 23s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 08s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 14s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 45s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 35s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 46s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 43s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 5m 51s
✔️ ansible-test-changelog SUCCESS in 2m 20s
✔️ ansible-test-splitter SUCCESS in 2m 42s
✔️ integration-community.aws-1 SUCCESS in 6m 05s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 3937464 into ansible-collections:main Jan 23, 2023
@patchback
Copy link

patchback bot commented Jan 23, 2023

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

  1. Ensure you have a local repo clone of your fork. Unless you cloned it
    from the upstream, this would be your origin remote.
  2. Make sure you have an upstream repo added as a remote too. In these
    instructions you'll refer to it by the name upstream. If you don't
    have it, here's how you can add it:
    $ git remote add upstream https://github.com/ansible-collections/community.aws.git
  3. Ensure you have the latest copy of upstream and prepare a branch
    that will hold the backported code:
    $ git fetch upstream
    $ git checkout -b patchback/backports/stable-5/3937464f94add69462c14a48b84c6c2e672c1350/pr-1640 upstream/stable-5
  4. Now, cherry-pick PR ecs_cluster capacity provider strategy #1640 contents into that branch:
    $ git cherry-pick -x 3937464f94add69462c14a48b84c6c2e672c1350
    If it'll yell at you with something like fatal: Commit 3937464f94add69462c14a48b84c6c2e672c1350 is a merge but no -m option was given., add -m 1 as follows intead:
    $ git cherry-pick -m1 -x 3937464f94add69462c14a48b84c6c2e672c1350
  5. At this point, you'll probably encounter some merge conflicts. You must
    resolve them in to preserve the patch from PR ecs_cluster capacity provider strategy #1640 as close to the
    original as possible.
  6. Push this branch to your fork on GitHub:
    $ git push origin patchback/backports/stable-5/3937464f94add69462c14a48b84c6c2e672c1350/pr-1640
  7. Create a PR, ensure that the CI is green. If it's not — update it so that
    the tests and any other checks pass. This is it!
    Now relax and wait for the maintainers to process your pull request
    when they have some cycles to do reviews. Don't worry — they'll tell you if
    any improvements are necessary when the time comes!

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

markuman pushed a commit to markuman/community.aws that referenced this pull request Jan 23, 2023
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 <git@osuv.de>
Reviewed-by: Justin McCormick <None>
Reviewed-by: Alina Buzachis <None>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jan 23, 2023
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>
markuman added a commit that referenced this pull request Jan 23, 2023
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>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jan 23, 2023
… (#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 git@osuv.de
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>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request May 6, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-5 PR should be backported to the stable-5 branch community_review feature This issue/PR relates to a feature request integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AWS ECS Capacity Provider Strategy Support
4 participants