DEV Community

Discussion on: Fixing AWS CodeDeploy issue where Auto Scaling Group is not attached to Target Group

Collapse
 
nbari profile image
nbari • Edited

I am having this issue but the problem is that I get the error just after the pipeline triggers the deploy therefore I can't follow/use this approach, any ideas? I am using EC2 instances.

It works only after creating the deployment for the first time, but when the pipeline triggers the deployment, the autoscaling groups get copied (without the target groups) and therefore It can proceed with the deployment.

codedeploy

It works only when using classic ELB.

Collapse
 
cvortmann profile image
César H. Vortmann

Sorry, I've just saw your question now. Unfortunately I don't work at that company anymore to be able to troubleshoot with you. Did you get around the problem?

Collapse
 
nbari profile image
nbari

Hi, I was missing this in the role policy:

     "autoscaling:*"
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
nom3ad profile image
Nom3ad

Are you sure about that? I got the policies right, but still getting the same error just after triggering the pipeline.

Thread Thread
 
nbari profile image
nbari

Indeed yesterday my pipeline returned the same error, after a couple of hours it worked again, I don't know exactly if is something from the AWS side or if they are working on it seems still an open issue: forums.aws.amazon.com/thread.jspa?...