zeus911/AWS_CodeDeploy_Example
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Please make sure that you add the following files to your project for this to work
appspec.yml
the entire scripts folder
Tutorial
1. Create IAM Roles
CodeDeploy & EC2CodeDeploy
2. Create EC2 instance with following categories
a. Choose AMI: Amazon Linux AMI
b. Choose Instance type: t2.micro
c. Configure Instance: Choose EC2CodeDeploy IAM role
d. Tag Instance: Name it what you please
e. Configure Security Group:
HTTP TCP 80 0.0.0.0/0
SSH TCP 22 (YOUR IP ADDRESS)
f. LAUNCH INSTANCE
3. Login to EC2 instance
4. Command line of Amazon Linux AMI
a. When server is booted
sudo su
yum -y update
yum install -y aws-cli
cd /home/ec2-user
b. Here you will setup your CodeDeploy.
aws s3 cp s3://aws-codedeploy-cn-north-1/latest/install . --region cn-north-1
chmod +x ./install
c. This is simply a quick hack to get the agent running faster.
./install auto
d. Verify it is running.
service codedeploy-agent status