diff --git a/USER_DATA.py b/USER_DATA.py index b9545c1..ff98610 100644 --- a/USER_DATA.py +++ b/USER_DATA.py @@ -2,10 +2,8 @@ REPOSITORY_URL = "https://git.wmi.amu.edu.pl/s464863/aws.git" user_data=f""" #!/bin/bash -sudo apt-get update -y -sudo apt-get install git -y -sudo mkdir /webservice -cd /webservice +sudo yum update -y +sudo yum install -y git sudo git clone {REPOSITORY_URL} cd aws sudo chmod +x webservice diff --git a/lb2.py b/lb2.py index e158e80..b400803 100644 --- a/lb2.py +++ b/lb2.py @@ -6,7 +6,7 @@ import time # Configuration variables PREFIX = "s464863" -AMI_ID = "ami-0e2c8caa4b6378d8c" +AMI_ID = "ami-0b5eea76982371e91" INSTANCE_TYPE = "t2.micro" SECURITY_GROUP_NAME = f"{PREFIX}-sg" REGION = "us-east-1"