Exercise deployment of a RestAPI using AWS CLI and AWS ElasticBeanstalk CLI with bash scripts.
- docker
- docker-compose
- python3
- python3-pip
- git
- jq
- bash
./run-local-deploy.sh
- Run setup script
- Install any dependencies missing
- Input your AWS credentials (AWS_SECRET_KEY_ID, AWS_SECRET_ACCESS_KEY), default region
- Set default output to 'json'
./scripts/setup-aws-tools.sh
export AWS_ACCOUNT_ID=<YOUR_ACCOUNT_ID>
# start with bash -x to debug issues
./run-aws-deploy.sh
Wait for the deployment script to complete and then
wait for AWS Cloudfront distribution to propagate checking the web console or altenatively using command:
aws cloudfront wait distribution-deployed --id ${AWS_CLOUDFRONT_ID}
and then run route53 script to create the DNS record set alias targeting the cloudfront distribution
./scripts/run-route53-dns.sh