amazon-web-servicesamazon-ecsaws-code-deployhttp-status-code-400error-code

"DeploymentLimitExceededException" on ECS Service (AWS)


I got the error when I created a service in ECS.

enter image description here

As the error says, the error happens in CodeDeploy.

The CodeDeploy deployment was not successful.
CodeDeploy The blue/green deployment was not successfully started 
for the service: The Deployment Group 'DgpECS-blogClu-test' already
has an active Deployment 'd-6C9HNEPDA' (Service: AmazonCodeDeploy; 
Status Code: 400; Error Code: DeploymentLimitExceededException;
Request ID: 5d4984d5-29fa-4681-97e4-acfa54b55e2b; Proxy: null)

How can I solve it?


Solution

  • Go to CodeDeploy. Then, check "Deployment group deployment history" at Application.

    enter image description here

    One deployment group is already running so you got the error because you cannot run multiple deployment groups at the same time.

    enter image description here

    You can stop it or wait for it to finish. Then, you can run another deployment group.

    enter image description here