3. CloudFormation
3
- Control AWS infrastructure in predictable way
(infrastructure as code)
- You don’t need to figure out the order for provisioning of
AWS services
- no additional charge
- JSON-formatted template (Declarative style)
- By default, “automatic rollback on error” feature is
enabled. Stacks can be fully created, or not at all.
4. AWS Test Drive
AWS Test Drive - sandbox containing
preconfigured server based solutions.
Using a step-by-step lab manual and
video, launch, login and learn about
these popular 3rd party IT solutions,
powered by AWS and CloudFormation.
4
20. Bootstrapping Applications
Python helper scripts (preinstalled on Amazon Linux AMI in /opt/aws/bin):
1. cfn-get-metadata: Retrieve metadata (key-value) attached to resources in
the template.
2. cfn-init: install packages and files described in AWS::CloudFormation::Init.
3. cfn-signal: signal to the stack creation workflow that your application is
ready to take traffic. Signal an CloudFormation CreationPolicy or
WaitCondition
4. cfn-hup: daemon to listen for stack updates and execute hooks to react to
those changes.
You can use CloudFormation scripts on their own or in conjunction with
CloudInit (official Ubuntu EC2 AMI support it).
20
27. Ways to deploy Docker app
1. Create a Dockerfile to deploy a Docker container to
AWS Elastic Beanstalk.
2. Create a Dockerrun.aws.json file to deploy a Docker
container from an existing Docker image
3. Create a .zip file containing any application file
dependencies, the Dockerfile or Dockerrun.aws.json
27