Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration &...
Transcript of Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration &...
![Page 1: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/1.jpg)
Code Deploy
![Page 2: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/2.jpg)
![Page 3: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/3.jpg)
![Page 4: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/4.jpg)
![Page 5: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/5.jpg)
SETUP and Configuration
![Page 6: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/6.jpg)
![Page 7: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/7.jpg)
StepsCreate a custom own policy with following content
https://s3-us-west-2.amazonaws.com/qt-test-s3-
1/DevOps/codedeploy-codedeploycustomuser-
policy_1468694436.txt
Attach policy to user
Create an instance profile by creating own policy @
https://s3-us-west-2.amazonaws.com/qt-test-s3-
1/DevOps/codedeploy-codedeploydemo-ec2-permissions-
instance-role-policy-s3-access_1468694804.txt
Create a Role to apply above created policy
![Page 8: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/8.jpg)
Steps contd..Create a Role for CodeDeploy and name it as
CodeDeployServiceRole
![Page 9: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/9.jpg)
![Page 10: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/10.jpg)
![Page 11: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/11.jpg)
Configuration steps1) Launch a new Amazon Linux AMI
2) Select appropriate instance Type
3) Set IAM role to the Instance Profile we created in the
Setup & Configuration lesson
![Page 12: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/12.jpg)
Configuration Steps CONTD...4) Open ‘Advanced Details’ and add the following bash
Script:
#!/bin/bash
yum -y update
yum install -y ruby
yum install -y aws-cli
cd /home/ec2-user
aws s3 cp s3://bucket-name/latest/install . --region region-name
chmod +x ./install
./install auto
![Page 13: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/13.jpg)
CONFIGURATION STEPS CONTD..5) Add storage
6) Add a ‘Name’ Tag to the instance
7) Configure a Security Group
8) Review and Launch
9) Select a key pair
10) Check to see if the AWS CodeDeploy agent has been
successfully installed
![Page 14: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/14.jpg)
![Page 15: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/15.jpg)
![Page 16: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/16.jpg)
![Page 17: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/17.jpg)
![Page 18: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/18.jpg)
![Page 19: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/19.jpg)
![Page 20: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/20.jpg)
![Page 21: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/21.jpg)
![Page 22: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/22.jpg)
![Page 23: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/23.jpg)
![Page 24: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/24.jpg)
![Page 25: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/25.jpg)
![Page 26: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/26.jpg)
![Page 27: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/27.jpg)
![Page 28: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/28.jpg)
![Page 29: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/29.jpg)
![Page 30: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/30.jpg)
![Page 31: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/31.jpg)
![Page 32: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/32.jpg)
![Page 33: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/33.jpg)
![Page 34: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/34.jpg)
![Page 35: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/35.jpg)
![Page 36: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/36.jpg)
https://s3-us-west-2.amazonaws.com/qt-test-s3-1/DevOps/codedeploy-codedeploydemo-ec2-
permissions-instance-role-policy-s3-access_1468694804.txt
![Page 37: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/37.jpg)
![Page 38: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/38.jpg)
![Page 39: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/39.jpg)
![Page 40: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/40.jpg)
![Page 41: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/41.jpg)
![Page 42: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/42.jpg)
![Page 43: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/43.jpg)
![Page 44: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/44.jpg)
![Page 45: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/45.jpg)
![Page 46: Code Deploy - Quality Thought · 2019-12-30 · 2) Create the deployment group, configuration & other options In one command we will specify: Deployment group (tag, key, value) Deployment](https://reader034.fdocuments.in/reader034/viewer/2022042305/5ed0cfa86415977ed9459278/html5/thumbnails/46.jpg)