-
Notifications
You must be signed in to change notification settings - Fork 580
Expand file tree
/
Copy pathCF_Commands.txt
More file actions
22 lines (18 loc) · 1.15 KB
/
CF_Commands.txt
File metadata and controls
22 lines (18 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
1) To create your EC2 instance using CloudFormation, first save CF_Template.json to your own S3 bucket,
then update the command below to reference your bucket as well as the name of a Key pair that you own in the
region that you are working in.
WINDOWS users will need to use ^ (Shift + 6) instead of \ for line continuation.
aws cloudformation create-stack --stack-name CodeDeployDemoStack \
--template-url https://my-cf-template-krishanu.s3.amazonaws.com/CF_Template.json \
--parameters ParameterKey=InstanceCount,ParameterValue=1 \
ParameterKey=InstanceType,ParameterValue=t2.micro \
ParameterKey=KeyPairName,ParameterValue=irkp \
ParameterKey=OperatingSystem,ParameterValue=Linux \
ParameterKey=SSHLocation,ParameterValue=0.0.0.0/0 \
ParameterKey=TagKey,ParameterValue=Name \
ParameterKey=TagValue,ParameterValue=CodeDeployDemo \
--capabilities CAPABILITY_IAM
2) Verify that the Cloud Formation stack has completed using:
aws cloudformation describe-stacks --stack-name CodeDeployDemoStack --query "Stacks[0].StackStatus" --output text
3) Log in to your instance and check that the CodeDeploy agent has correctly installed:
sudo service codedeploy-agent status