This commit is contained in:
dzikafoczka 2024-12-20 23:08:59 +01:00
parent d7bcc0860a
commit 012a2a11fd
2 changed files with 3 additions and 5 deletions

View File

@ -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

2
lb2.py
View File

@ -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"