Skip to content

Commit

Permalink
Fix 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 6794ed0 commit e169ed4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cloudformation/aws-streaming-wizard/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,12 @@ Resources:
#!/bin/bash
touch /usr/local/antmedia/conf/initialized
bash /usr/local/antmedia/change_server_mode.sh cluster ${DBInstance.PrivateIp}
apt-get update
apt-get install -y python3-pip
apt-get install -y python3-setuptools
sudo apt-get update
sudo apt-get -y install python3-pip
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 EdgeGroup --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 EdgeGroup --region ${AWS::Region}
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down

0 comments on commit e169ed4

Please sign in to comment.