I have a sample script which creates EC2, CodeBuild, CodeDeploy and its Deployment Group with ALB and then it goes further to setup with codePipeline, however I am getting an error on CodeDeployDeploymentGroup stage,
Error –
CodeDeployDeploymentGroup
CREATE_FAILED
Likely root cause
The target group name arn:aws:elasticloadbalancing:us-west-2:363010889649:targetgroup/SampleTG/75497adb8b9bc9b8 specified in targetGroupInfoList exceeds the maximum allowed length of 32 characters.
here is the sample script
The sample script is here
what could be the issue? I have tried shorting the names, so I am not sure what could be the problem here.