aws s3 cp s3://elasticbeanstalk-samples-ap-southeast-2/java-sample-app.zip .
unzip java-sample-app.zip -d java-sample-app.d # have a look at the contents
CI/CD applied to ElasticBeanstalk and adjacent AWS tech
aws cloudformation validate-template --template-body file://application.cloudformation.yaml --output table &&
aws cloudformation create-stack --stack-name eb1\
--capabilities CAPABILITY_IAM\
--on-failure DELETE\
--template-body file://application.cloudformation.yaml &&
aws cloudformation wait stack-create-complete --stack-name eb1 &&
aws cloudformation describe-stacks --stack-name eb1 --query 'Stacks[0].Outputs' --output table
aws cloudformation validate-template --template-body file://application.cloudformation.yaml --output table &&
aws cloudformation update-stack --stack-name eb1\
--capabilities CAPABILITY_IAM\
--template-body file://application.cloudformation.yaml &&
aws cloudformation wait stack-update-complete --stack-name eb1 &&
aws cloudformation describe-stacks --stack-name eb1 --query 'Stacks[0].Outputs' --output table
aws cloudformation validate-template --template-body file://build.cloudformation.yaml --output table &&
aws cloudformation create-stack --stack-name eb1build\
--on-failure DELETE\
--capabilities CAPABILITY_IAM\
--parameters ParameterKey=applicationStack,ParameterValue=eb1\
--template-body file://build.cloudformation.yaml &&
aws cloudformation wait stack-create-complete --stack-name eb1build
aws cloudformation validate-template --template-body file://build.cloudformation.yaml --output table &&
aws cloudformation update-stack --stack-name eb1build\
--capabilities CAPABILITY_IAM\
--parameters ParameterKey=applicationStack,UsePreviousValue=true\
--template-body file://build.cloudformation.yaml &&
aws cloudformation wait stack-update-complete --stack-name eb1build