IaC - Cloudformation - Step by Step Automating Infrastructure Deployment on AWS
Вставка
- Опубліковано 18 вер 2024
- In this video you will learn
Deploy a virtual private cloud (VPC) networking layer by using an AWS CloudFormation template
Deploy an application layer by using an AWS CloudFormation template
Use Git to invoke AWS CodePipeline, and to create or update stacks from templates that are stored in AWS CodeCommit
Duplicate network and application resources to another AWS Region by using AWS CloudFormation
Following tasks will be done:
Task 1: Creating an AWS CloudFormation template from scratch
Task 2: Configuring the bucket as a website and updating the stack
Task 3: Cloning a CodeCommit repository that contains AWS CloudFormation templates
Task 4: Creating a new network layer with AWS CloudFormation, CodeCommit, and CodePipeline
Task 5: Updating the network stack
Task 6: Defining an EC2 instance resource and creating the application stack
Task 7: Duplicating the café network and website to another AWS Region
Commands:
aws configure get region
aws cloudformation create-stack --stack-name CreateBucket --template-body file://S3.yaml
aws cloudformation validate-template --template-body file://S3.yaml
aws cloudformation update-stack --stack-name CreateBucket --template-body file://S3.yaml
git clone url
git status
git add templates/cafe-network.yaml
git commit -m 'initial commit of network template' templates/cafe-network.yaml
git push
aws cloudformation create-stack --stack-name update-cafe-network --template-body file:///home/ec2-user/environment/CFTemplatesRepo/templates/cafe-network.yaml --region us-west-2
aws s3 cp templates/cafe-app.yaml s3usrl
AWS
DevOps
AWS solution arcchitect