Rapid Docker on AWS

Video Course

2.6 Launching your web application

Warning: Costs arise when you launch the demo infrastructure and application. You can expect costs of around $4.50 per day. You will learn to delete all AWS resources at the end of a section or chapter.

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 --parameter-overrides AppImage=$PHP_IMAGE ProxyImage=$NGINX_IMAGE

Get AWS endpoint

aws cloudformation describe-stacks --stack-name php-basic --query 'Stacks[0].Outputs[?OutputKey==`Url`].OutputValue' --output text

Community

Sorry for the inconvenience, but community.cloudonaut.io is offline. If you have a question about Rapid Docker on AWS, please send us an email instead.

Cleanup

In case you are not planning to continue with the next chapter in a timely manner, please delete the AWS infrastructure and repositories to avoid unnecessary costs. Otherwise, keep the infrastructure up and running.

cd /src/php-basic/aws
bash cleanup.sh