faktury
This commit is contained in:
parent
1476202777
commit
720bf2f054
2
ec2.py
2
ec2.py
@ -209,7 +209,7 @@ def run_instance(ec2_client, launch_template_id, subnet_id):
|
|||||||
public_dns = instance_info['Reservations'][0]['Instances'][0].get('PublicDnsName')
|
public_dns = instance_info['Reservations'][0]['Instances'][0].get('PublicDnsName')
|
||||||
|
|
||||||
if public_ip:
|
if public_ip:
|
||||||
return public_ip
|
print(f"Public IP: {public_ip}")
|
||||||
if public_dns:
|
if public_dns:
|
||||||
print(f"Public DNS: {public_dns}")
|
print(f"Public DNS: {public_dns}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user