ECS Blue/Green deploys fail to set Capacity Provider using the ECS console

0

We have an ECS cluster and service that is configured for CodeDeploy based Blue/Green deploys. The ECS service uses an EC2 Autoscaling group as a Capacity Provider. If I use the ECS console -> Update Service to a new Task Definition, and ensure that my Capacity Provider is selected, when the deployment is sent to CodeDeploy, the Capacity Provider is NOT set in the AppSpec. I can verify this by going to CodeDeploy -> Deployments -> the deployment -> Revision Details and click the "Revision location" then very clearly the Capacity Provider is NOT set in the AppSpec.

However, if I run a deployment via the CodeDeploy console, or via CodePipeline where I have defined the AppSpec file to include "CapacityProviderStrategy" the deployment works without issue.

This really seems like a bug in the ECS console UI where clearly the Capacity Provider is selected in the UI but not passed to CodeDeploy. The result is that ECS is unable to place the task. Can this bug be fixed in the ECS console?

Chuck W
질문됨 8달 전327회 조회
1개 답변
0

Your observations seem to indicate a potential discrepancy between how the ECS console UI and the backend services (like CodeDeploy) handle the Capacity Provider configuration during Blue/Green deployments. As I know, there have been instances in the past where the ECS console may not expose or handle all the features and configurations available via the AWS SDK, CLI, or other AWS services.

If you believe you've encountered a bug:

1. AWS Support: If you have a support plan with AWS, I'd recommend creating a support ticket to notify AWS of the potential issue. AWS Support can provide more immediate assistance and forward the feedback to the ECS service team.

2. Feedback on the Console: There is usually a "Feedback" button at the bottom of AWS service consoles. You can use this to provide feedback directly. Make sure to provide as much detail as possible to help AWS reproduce the issue.

3. Workaround: In the meantime, as you've noted, deploying via the CodeDeploy console or CodePipeline where you explicitly define the AppSpec file seems to be a reliable method. It's not ideal, but it can serve as a workaround until the potential issue with the ECS console is addressed.

Remember, AWS is continually updating and improving its services. Feedback from users plays a crucial role in identifying areas for enhancement.

profile picture
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인