Internal error with CodePipeline + CodeDeploy
Hi,
I have a CodePipeline set up where changes to code builds and pushes an image to ECR. I am looking to automate updating ECS with the new image as it is built. I have configured the ECS Blue/Green action but when it runs it fails almost immediately with a message about an "Internal Error". There is no failed deployment created in CodeDeploy.
I have configured CodePipeline with two inputs:
- the source code used to build the image
a zip in S3 containing the appspec.yaml and the taskdef.json
When either input changes I rebuild the container and push to ECR tagged 'latest'. The next step should be a Blue/Green deployment to ECS. I have configured CodeDeploy and the job works if triggered manually.
When it is triggered via CodePipeline it will fail and I receive a message "Action execution failed
InternalError. Error reference code: <some id>". I suspect that there may be some underlying issue with IAM but I can't find where to start looking at this stage. There is no failed deployment shown in CodeDeploy so I don't see a way to get more information about what has failed.
My policy for CodePipeline is copied from the one documented here: https://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-custom-role.html#view-default-service-role-policy
I have read through the troubleshooting docs here: https://docs.aws.amazon.com/codepipeline/latest/userguide/troubleshooting.html
I believe my issue is similar to the one described here: https://forums.aws.amazon.com/thread.jspa?messageID=897822 I've tried to provide as much detail as I can.
I'm pretty well stuck at this point - is there anything else I should be trying at this stage?
thanks!
I have resolved this. After very carefully re-checking all my artifacts I discovered that the taskdef.json was not correctly formed. This is my own fault but it would have been so nice if the error could have given me a clue along those lines - I probably should have realised it sooner given that is a difference between triggering the deployment manually vs doing it via CodePipeline.
Now that the inputs are correct it appears to be working correctly.
Relevant questions
CodePipeline ECS Rolling Updates for multiple services
asked 3 months agoForce New Task Definition Revision to run
asked 21 days agoFailed when run code deploy
asked a month agoCodepipeline got stuck with deploy "in progress" ... but deploy was done
asked 3 months agoInternal error with CodePipeline + CodeDeploy
asked 3 years agoSAM & Docker Builds-- How do they update (not working for me)?
asked 3 months agoCodePipeline with ECS Fargate using Graviton2 is failing
asked 6 months agoDeploy updated container to existing CDK stack
Accepted Answerasked 3 years agoAction execution failed InternalError
asked 3 years agoCodeDeploy/CodePipeline Action execution failed InternalError. Error reference code
asked 8 days ago