flutter-vienna-hackathon-25/wien_talks_server/deploy/aws/terraform/init-script.sh
2025-08-17 11:57:58 +02:00

24 lines
514 B
Bash

#!/bin/bash
echo "Update yum packages"
yum update -y
# Install yum packages
echo "Installing ruby"
yum install ruby -y
echo "Installing wget"
yum install wget -y
# Install CodeDeploy agent
echo "Installing CodeDeploy agent"
cd /home/ec2-user
wget https://aws-codedeploy-us-west-2.s3.us-west-2.amazonaws.com/latest/install
chmod +x ./install
./install auto
rm install
# Set runmode
echo "Setting runmode"
echo ${runmode} > /home/ec2-user/runmode
chown ec2-user:ec2-user /home/ec2-user/runmode
echo "Setup done"