Install app as a service. Update application upon deployment without destroing it. Added elastic ip
Some checks failed
AWS Deploy on Push / build (push) Failing after 4m0s
Some checks failed
AWS Deploy on Push / build (push) Failing after 4m0s
This commit is contained in:
@@ -97,8 +97,15 @@ class IptvUpdaterStack(Stack):
|
||||
user_data=userdata,
|
||||
)
|
||||
|
||||
# Create Elastic IP
|
||||
eip = ec2.CfnEIP(
|
||||
self, "IptvUpdaterEIP",
|
||||
domain="vpc",
|
||||
instance_id=instance.instance_id
|
||||
)
|
||||
|
||||
# Output the public DNS name
|
||||
CfnOutput(
|
||||
self, "InstancePublicDNS",
|
||||
value=instance.instance_public_dns_name
|
||||
value=eip.attr_public_ip
|
||||
)
|
||||
Reference in New Issue
Block a user