Skip to content

Commit

Permalink
Update cfn for Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu authored May 12, 2024
1 parent 0576401 commit 8b550f6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions aws-custom-cluster/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Resources:
Fn::Base64: !Sub |
#!/bin/bash
sudo apt-get update -y
sudo apt-get install stunnel -y
sudo apt-get install stunnel python3-pip -y
sudo tee /etc/stunnel/stunnel.conf > /dev/null <<EOF
fips = no
setuid = root
Expand All @@ -376,13 +376,12 @@ Resources:
EOF
sudo systemctl enable stunnel4
sudo stunnel /etc/stunnel/stunnel.conf
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh standalone redis://localhost:6379
apt-get install -y python3-pip
apt-get install -y python3-setuptools
mkdir -p /opt/aws/bin
wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
sudo pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
/usr/local/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource OriginGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down

0 comments on commit 8b550f6

Please sign in to comment.