From 012a2a11fd3131530785cce57d21b1f1e3bb2b60 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Fri, 20 Dec 2024 23:08:59 +0100 Subject: [PATCH] lb2 --- USER_DATA.py | 6 ++---- lb2.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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"