This commit is contained in:
dzikafoczka 2024-12-22 19:10:23 +01:00
parent d3a66b39b6
commit d015161e2b

6
ec2.py
View File

@ -167,6 +167,12 @@ def create_security_group(ec2_client, vpc_id):
'FromPort': 8080,
'ToPort': 8080,
'IpRanges': [{'CidrIp': '0.0.0.0/0', 'Description': 'HTTP access'}]
},
{
'IpProtocol': 'tcp',
'FromPort': 80,
'ToPort': 80,
'IpRanges': [{'CidrIp': '0.0.0.0/0', 'Description': 'HTTP access'}]
}
]
)