Adding npm Scripts for AWS

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:

  1. Ensure that bit.ly/npmScriptsForDocker are set up on your project
  2. 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
  1. Ensure that your .env file is in your .gitignore file to protect your secrets

  1. Install or upgrade to latest AWS CLI:
    • On macOS brew install awscli
    • On Windows choco install ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.