Mod 8 Automation
Mod 8 Automation
Module 8: Automation
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Poll Question Have you used any of these resource provisioning
tools?
A. AWS CloudFormation
D. Not yet
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Module overview
• Business requests
• AWS CloudFormation
• Infrastructure management
• Present solutions
• Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Business requests The chief technology officer wants to know:
• How can we simplify our cloud infrastructure
build?
• How can we deploy, maintain, and scale
applications in the cloud?
Chief Technology
Officer
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
AWS CloudFormation
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Infrastructure as code (IaC)
• Replicate, redeploy,
and repurpose.
• Control versioning on
infrastructure and
applications.
• Detect drift.
• Roll back the service
to the last good state.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
Benefits of IaC – Reusability
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
Benefits of IaC – Updates
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
AWS CloudFormation
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
Understanding CloudFormation
JSON
{
• Written as JSON or "Resources" : {
YAML "HelloBucket" : {
"Type" : "AWS::S3::Bucket"
• Describes the
}
resources to be created }
or modified }
• Treated as source
code:
• Code reviewed YAML
• Version controlled
Resources:
HelloBucket:
Type: AWS::S3::Bucket
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
Stacks
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Using multiple templates
A layered architecture
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Infrastructure management
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Infrastructure tools
Deployments Management
AWS Elastic AWS Solutions AWS Cloud AWS CloudFormation AWS Systems
Beanstalk Library Development Kit Manager
(AWS CDK)
Convenience Control
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
AWS Elastic Beanstalk
• Provisions and
Your code
operates the Provided by you
infrastructure HTTP server
• Manages the
application stack for Application server
you
• Shows everything that Language interpreter
Provided and
is created managed by Elastic OS
• Automatically scales Beanstalk
your application up Host
and down
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
AWS Solutions Library
CloudFormation
Templates
• Prebuilt
reference
architectures
• Deployment
accelerator Deployment
AWS Solutions Library
• Solutions
approved by
AWS Your account
architects
Scripts
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
AWS CDK
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26
AWS Systems Manager
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 27
Review
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Present Consider how you can answer the
solutions following:
• How can we simplify our cloud infrastructure
build?
• How can we deploy, maintain, and scale
applications in the cloud?
Chief Technology
Officer
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 29
Module review
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 30
Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Knowledge check question 1
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
Knowledge check question 1 and answer
A
correct
All of the provisioned resources defined in a CloudFormation template
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 33
Knowledge check question 2
Which of the following are benefits of using AWS CDK with CloudFormation? (Select TWO.)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34
Knowledge check question 2 and answer
Which of the following are benefits of using AWS CDK with CloudFormation? (Select TWO.)
A
correct
Developers can use common programming languages.
C
correct
Developers can call preconfigured resources with proven defaults.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
End of Module 8
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36