Created
July 27, 2022 06:29
-
-
Save d-kahara/64002d6e774d19bdba0e67380f97c4e5 to your computer and use it in GitHub Desktop.
Install Code deploy agent on Ubuntu 22.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
sudo apt-get update | |
sudo apt-get install ruby-full ruby-webrick wget -y | |
cd /tmp | |
wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/releases/codedeploy-agent_1.3.2-1902_all.deb | |
mkdir codedeploy-agent_1.3.2-1902_ubuntu22 | |
dpkg-deb -R codedeploy-agent_1.3.2-1902_all.deb codedeploy-agent_1.3.2-1902_ubuntu22 | |
sed 's/Depends:.*/Depends:ruby3.0/' -i ./codedeploy-agent_1.3.2-1902_ubuntu22/DEBIAN/control | |
dpkg-deb -b codedeploy-agent_1.3.2-1902_ubuntu22/ | |
sudo dpkg -i codedeploy-agent_1.3.2-1902_ubuntu22.deb | |
systemctl list-units --type=service | grep codedeploy | |
sudo service codedeploy-agent status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment