46
Code Deploy

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

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

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

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

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

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

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

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

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

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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://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
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
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
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
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
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
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
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
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
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