0% found this document useful (0 votes)
18 views27 pages

Mod 8 Automation

Uploaded by

Idris Yusuf
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
18 views27 pages

Mod 8 Automation

Uploaded by

Idris Yusuf
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 27

Architecting on AWS

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

B. AWS Elastic Beanstalk

C. Others (for example, Terraform or OpenStack Heat)

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

“How can we simplify our cloud infrastructure build?”

© 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

CloudFormation template CloudFormation Stack

Create template Upload the CloudFormation CloudFormation


template translates to an forms a stack of
API request resources

© 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

Amazon Virtual Private Cloud


• A collection of AWS (Amazon VPC)
resources managed as Stack
a single unit
• Can deploy and delete Amazon DynamoDB
resources as a unit
Amazon Relational Database
• Can update resources Service (Amazon RDS)
and settings on
running stacks Stack Amazon Elastic File System
Template (Amazon EFS)
• Supports nested stacks
and cross-stack Amazon Elastic Cloud
references Compute (Amazon EC2)

Stack AWS Lambda

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Using multiple templates

A layered architecture

Frontend Web interface, admin interface, analytics dashboard

Customers, campaigns, products, analytics, marketing


Backend
collateral

Databases, common monitoring or alarms,


Shared
subnets, security groups

Base VPCs, internet gateways, Virtual Private


network Networks (VPNs), NAT gateways

Identity and Access Management


Identity
users (IAM) users, groups, roles

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Infrastructure management

“How can we deploy, maintain, and scale applications in the cloud?”

© 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

• Uses any supported


language to generate
templates
• Supports
autocomplete and
inline documentation
• Has proven defaults
and reusable classes
• Provisions multiple
environments

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26
AWS Systems Manager

Provisioning and Configuration Operations and Monitoring


entitlement management compliance management

© 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

In this module you learned about:


Amazon CloudFormation
Infrastructure management

Next, you will review:


Knowledge check

© 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

What is a CloudFormation stack?

A All of the provisioned resources defined in a CloudFormation template

B All of the resources identified as drifted in a CloudFormation template

C A condition when resources are added on top of each other

D The properties of a single resource

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
Knowledge check question 1 and answer

What is a CloudFormation stack?

A
correct
All of the provisioned resources defined in a CloudFormation template

B All of the resources identified as drifted in a CloudFormation template

C A condition when resources are added on top of each other

D The properties of a single resource

© 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.)

A Developers can use common programming languages.

B Bulk discounts are automatically applied to resource usage.

C Developers can call preconfigured resources with proven defaults.

D Components are limited to a single user.

E Using AWS CDK does not require an AWS account or credentials.

© 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.

B Bulk discounts are automatically applied to resource usage.

C
correct
Developers can call preconfigured resources with proven defaults.

D Components are limited to a single user.

E Using AWS CDK does not require an AWS account or credentials.

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
End of Module 8

Corrections, feedback, or other questions?


Contact us at https://support.aws.amazon.com/#/contacts/aws-training.
All trademarks are the property of their owners.

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36

You might also like