Deploying high availability web application on Apache Server using AWS Cloudformation.
- You can specify S3 bucket and file name, where the stack can to get the code your application in the file
servers.yml
to deploy it.
- First, create infrastructure network:
aws cloudformation create-stack --stack-name network --template-body file:///<your-path>/network.yml --parameters file:///<your-path>network-params.json
- Last, create servers and other resources:
aws cloudformation create-stack --stack-name servers --template-body file:///<your-path>/servers.yml --capabilities CAPABILITY_IAM --parameters file:///<your-path>/servers-params.json