Skip to content

Commit

Permalink
put pip install after cert fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhayden53 committed Sep 10, 2021
1 parent 43b9056 commit 9b51b1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ami_rotation/ami_rotation_userdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/has
yum install terraform-0.15.4-1 -y -q
yum install git -y -q
yum install python3 -y -q
python3 -m pip install -q --upgrade pip && python3 -m pip install boto3 -q

chown -R ec2-user:ec2-user /home/ec2-user/

Expand All @@ -105,6 +104,8 @@ mkdir -p /etc/pki/ca-trust/extracted/pem
ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /usr/lib/ssl/cert.pem

python3 -m pip install -q --upgrade pip && python3 -m pip install boto3 -q

sudo -i -u ec2-user bash << EOF
mkdir ~/bin ~/tmp
cd ~/tmp
Expand Down

0 comments on commit 9b51b1e

Please sign in to comment.