Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing AWS Elastic Beanstalk configuration for git deployment to AWS

I have a project deployed to Amazon Elastic Beanstalk but I need to have other team members deploy as well. We are using AWS eb CLI, which is very handy. But, it adds all generated configuration directory to .gitignore, removing the directory from .gitignore isn't a good idea.

Any ideas or tools that would allow me to share the configuration (I already shared the key) with team members so they can deploy as well?

like image 495
Omar Ali Avatar asked Oct 22 '22 11:10

Omar Ali


2 Answers

It technically is OK for you to check in .elasticbeanstalk, but let me give you a few caveats: You and your team need to be very very specific on the order of operations, or you will get your self in a bad situation. For example: ApplicationVersionName= is the last version that was deployed, so the user deploying needs to deploy to AWS, THEN commit to the remote. Everyone needs to the PULL from the remote before doing anything else. You also need all of your config files in a common place, because the config file by default references files in your user directory, like credential files.Those need to move up to a common folder. There's probably more downside than upside to having ore than one deployment person though.

like image 139
regretoverflow Avatar answered Oct 28 '22 00:10

regretoverflow


If you are using Maven, the Beanstalk Maven Plugin is a good choice to keep the configurations into your pom. Likely it will solve your sharing problem.

Check out the documentation.

Regarding security, credentials are kept on ~/.m2/settings.xml and protected by Maven server password encryption mechanism.

like image 40
Mr.C Avatar answered Oct 28 '22 00:10

Mr.C