Andrew-Chen-Wang / cookiecutter-django-ec2-github

Deploying a Django project to AWS using GitHub Actions and CodeDeploy Blue/Green Deployment + EC2 (Works w/ Flask/FastAPI/Rails)
Apache License 2.0
47 stars 11 forks source link

Ubuntu 22 user agent data #17

Open Andrew-Chen-Wang opened 1 year ago

Andrew-Chen-Wang commented 1 year ago
#!/bin/bash
sudo apt update
sudo apt -y upgrade
sudo apt-get -y install ruby-full ruby-webrick wget
cd /tmp
wget -4 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
sudo systemctl list-units --type=service | grep codedeploy
sudo service codedeploy-agent start

from: https://stackoverflow.com/questions/73301858/aws-codedeploy-agent-not-installing-on-ubuntu-22-04

Andrew-Chen-Wang commented 1 year ago

still not working

Andrew-Chen-Wang commented 1 year ago

this wasn't necessary; released just 5 days ago: https://github.com/aws/aws-codedeploy-agent/issues/349