sethstone / commandbox-cicd-templates

CommandBox command for generating CI/CD templates for cloud deployments.
MIT License
5 stars 1 forks source link

AWS/Fargate: CodeDeploy Service Role cannot be longer than 64 characters #2

Closed sethstone closed 2 years ago

sethstone commented 2 years ago

If you're project name is longer than 15 characters it will cause the template to generate a CodeDeploy Service Role name that is longer than the allowed length of 64 characters:

image

Technically applies to any Role Name, but the CodeDeploy role is naturally longer given the logic and phrasing use to auto-construct the name. For example: codedeploy-test20220319-api-codedeploy-app-us-east-1-service-role.

Ideally the project would support project prefixes up to 32 characters, but whatever the limit is it should be stated and enforced when generating the templates.

sethstone commented 2 years ago

A related issue is that the ELB target group names cannot be longer than 32.

Looks like the practical max for the project prefix is going to be 28. Should accommodate most projects by default, but will truncate the name if necessary.