This commit is contained in:
mikolajpaterka 2023-01-26 21:47:36 +01:00
parent 94224c469c
commit c4b749ce8a
4 changed files with 16 additions and 9 deletions

8
4_aws/README.md Normal file
View File

@ -0,0 +1,8 @@
### Zadanie 4 AWS
Nalezy uzwupełnić dane w pliku `credencials_aws.py`
Aby urochomić użyj komend:
```
python3 main.py
```

Binary file not shown.

View File

@ -1,5 +1,5 @@
aws_access_key_id='ASIARJHPFIYPOSK2KKHF'
aws_secret_access_key='MGAN4JsXBffXHKGxabf4migUnApCV2ZB4wyIKFPP'
aws_session_token='FwoGZXIvYXdzEMv//////////wEaDPqjsdci8pf3n4trQiLBAV8zfYu8D3jLLwiS8k/tsFJ4WFI56VvRJem5g3h6Uond1m78jALXEvAg9HjuNXXVwlRBYDpwmKKTuNgfxwfzmytQbVFHIUyj2mPVsCIaPaq1MJsL0IVLssFZBG1MPkkobTSilFHKMXg9BqFIpd/hNioCBcluzQ7z80WZAoMwxjifXuZrrqrLfx+pm0aS3joAn0CMBMl5wiF0qysEd+KjYt+0DDr2KCtPLSfeVyDS5hci5YkcrHZayMYU/9F0Dua2BRgokvbKngYyLUHgJI2ODq99pQVCxafWFIWSXzPf091nOXO4EZAVxJ2PrVRMntrIa9zShGes3A=='
aws_access_key_id=''
aws_secret_access_key=''
aws_session_token=''
DEFAULT_VPC = 'vpc-03a807e9eb1952c59'
DEFAULT_VPC = ''

View File

@ -6,10 +6,10 @@ import boto3, time
INDEKS = "s444455"
key_name = f"{INDEKS}-key-4"
security_group_name = f"{INDEKS}-security-group-4"
target_group_name = f"{INDEKS}-target-group-4"
load_balancer_name = f"{INDEKS}-load-balancer-4"
key_name = f"{INDEKS}-key"
security_group_name = f"{INDEKS}-security-group"
target_group_name = f"{INDEKS}-target-group"
load_balancer_name = f"{INDEKS}-load-balancer"
user_data = f'''
@ -71,7 +71,6 @@ if __name__ == '__main__':
if instance_1.state['Code'] == 16 and instance_2.state['Code'] == 16:
break
#TODO target group
elbv2 = boto3.client(
'elbv2',
region_name='us-east-1',