1 Answer
- Newest
- Most votes
- Most comments
0
Not being able to see exactly how you might have tried to do this here is a solution below that should successfully install the CodeDeploy agent
{
"schemaVersion": "2.2",
"description": "Install CodeDeploy Agent",
"parameters": {},
"mainSteps": [
{
"action": "aws:runShellScript",
"name": "installCodeDeployAgent",
"inputs": {
"runCommand": [
"#!/bin/bash",
"sudo yum update -y",
"sudo yum install ruby -y",
"sudo yum install wget -y",
"cd /home/ec2-user",
"wget https://aws-codedeploy-eu-west-2.s3.amazonaws.com/latest/install",
"chmod +x ./install",
"sudo ./install auto > /tmp/logfile",
"sudo service codedeploy-agent start"
]
}
}
]
}
Save the document and use the AWS Console, CLI, or a SDK to execute this.
answered 7 months ago
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago