Just like npm Scripts for Docker, I have developed a set of scripts, called npm Scripts for AWS, that work on Windows 10 and macOS. These scripts will allow you to upload and release your Docker images in spectacular, no-downtime, blue-green fashion. You can get the latest version of these scripts at bit.ly/npmScriptsForAWS:
- Ensure that bit.ly/npmScriptsForDocker are set up on your project
- Create a .env file and set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY:
.envAWS_ACCESS_KEY_ID=your_own_key_id
AWS_SECRET_ACCESS_KEY=your_own_secret_key
- Ensure that your .env file is in your .gitignore file to protect your secrets
- Install or upgrade to latest AWS CLI:
- On macOS brew install awscli
- On Windows choco install ...