Skip to content

Conversation

@aemada-aws
Copy link
Contributor

Issue # (if applicable)

Closes #35699
Related to: #35742

Reason for this change

CfnClusterCapacityProviderAssociations is not needed when using only managed instances as a capacity provider, but it was being created anyway with empty values. It is needed if default capacity providers are set, or the capacity provider is not of the managed instances type.

Description of changes

Removed the clusterScopedCapacityProviderNames check when creating CfnClusterCapacityProviderAssociations.

Destructive changes: CfnClusterCapacityProviderAssociations will be deleted if user does not provide default capacity providers or default fargate and uses only ManagedInstancesCapacityProvider.

Describe any new or updated permissions being added

None

Description of how you validated changes

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team October 20, 2025 10:42
@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 labels Oct 20, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 20, 2025
@aemada-aws aemada-aws force-pushed the fix-cfn-association-resource branch from 1133313 to a117849 Compare October 20, 2025 10:43
@aemada-aws aemada-aws added the pr/do-not-merge This PR should not be merged at this time. label Oct 21, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Oct 21, 2025
@aemada-aws aemada-aws removed the pr/do-not-merge This PR should not be merged at this time. label Oct 23, 2025
@Abogical Abogical self-assigned this Oct 23, 2025
Copy link
Member

@Abogical Abogical left a comment

Choose a reason for hiding this comment

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

I believe a unit test checking if the CfnClusterCapacityProviderAssociations resource is removed needs to be added.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Oct 23, 2025
@aemada-aws
Copy link
Contributor Author

aemada-aws commented Oct 23, 2025

I believe a unit test checking if the CfnClusterCapacityProviderAssociations resource is removed needs to be added.

added one

@aemada-aws aemada-aws force-pushed the fix-cfn-association-resource branch from e036402 to 4afebaf Compare October 23, 2025 16:41
@aemada-aws aemada-aws force-pushed the fix-cfn-association-resource branch from 4afebaf to 95c12c8 Compare October 23, 2025 16:50
Copy link
Member

@Abogical Abogical left a comment

Choose a reason for hiding this comment

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

Thanks!

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

This pull request has been removed from the queue for the following reason: pull request branch update failed.

The pull request can't be updated.

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@Abogical
Copy link
Member

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

update

❌ Mergify doesn't have permission to update

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/analytics-metadata-updater.yml without workflows permission

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@Abogical
Copy link
Member

@Mergifyio requeue

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit c8a131b into aws:main Oct 24, 2025
19 of 20 checks passed
@github-actions
Copy link
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ecs: unable to create managed instances capacity provider

4 participants