Rapid Docker on AWS

Video Course

3.2 Managing your stack with infrastructure as code: AWS CloudFormation

Reminder Temporary working environment
A short reminder of how to start your temporary working environment:
On Mac and Linux, open a terminal:
cd docker-on-aws-code && bash start.sh
On Windows, open PowerShell:
cd docker-on-aws-code; powershell -ExecutionPolicy ByPass -File start.ps1

cfn-modules

https://github.com/cfn-modules/docs

Deploy to AWS

cd /src/php-basic/aws
npm i
aws cloudformation package --template-file template.yml --s3-bucket docker-on-aws-$NICKNAME --output-template-file .template.yml
aws cloudformation deploy --template-file .template.yml --stack-name php-basic --capabilities CAPABILITY_IAM