ThoughtWorksStudios / eb_deployer

AWS Elastic Beanstalk blue-green deployment automation from ThoughtWorks Mingle Team
MIT License
400 stars 94 forks source link

Elastic Beanstalk Environment Name Restriction size #88

Open kotowick opened 8 years ago

kotowick commented 8 years ago

It looks like Elastic Beanstalk environment name can handle up to 40 chars. eb-deployer restricts it to 20 (including the hash at the end).

Can we get this updated?

https://github.com/ThoughtWorksStudios/eb_deployer/blob/master/lib/eb_deployer/eb_environment.rb

weixu365 commented 7 years ago

Same question, Is there anyone following on this issue?

The EB environment name which is {envName}-{a|b}-{hash} is limited to 40 characters. The suffix takes 10 characters: hash is 7 characters, two dashes and a letter which is a or b. The envName should be limited to 40 - 10 = 30 characters.

FYI, my workaround is changing the limit from 15 to 30 after installed eb-deployer:

sed -i 's/if env_name.size > 15/if env_name.size > 32/g' /usr/local/bundle/gems/eb_deployer-0.6.6/lib/eb_deployer/eb_environment.rb

But it would be nice to merge this into master, is there any concerns on this?