|
@ -85,18 +85,18 @@ try: |
|
|
'FromPort': 22, |
|
|
'FromPort': 22, |
|
|
'ToPort': 22, |
|
|
'ToPort': 22, |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]}, |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]}, |
|
|
{'IpProtocol': 'tcp', |
|
|
|
|
|
|
|
|
{'IpProtocol': 'tcp', |
|
|
'FromPort': 80, |
|
|
'FromPort': 80, |
|
|
'ToPort': 80, |
|
|
'ToPort': 80, |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]}, |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]}, |
|
|
{'IpProtocol': 'tcp', |
|
|
|
|
|
|
|
|
{'IpProtocol': 'tcp', |
|
|
'FromPort': 443, |
|
|
'FromPort': 443, |
|
|
'ToPort': 443, |
|
|
'ToPort': 443, |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]} |
|
|
'IpRanges': [{'CidrIp': '0.0.0.0/0'}]} |
|
|
]) |
|
|
]) |
|
|
print('Ingress Successfully Set %s' % data) |
|
|
|
|
|
|
|
|
print('Ingress Successfully Set %s' % data) |
|
|
except ClientError as e: |
|
|
except ClientError as e: |
|
|
print(e) |
|
|
|
|
|
|
|
|
print(e) |
|
|
|
|
|
|
|
|
print("Running new DB instance...") |
|
|
print("Running new DB instance...") |
|
|
print("------------------------------------") |
|
|
print("------------------------------------") |
|
|