sparse-intern-71089
01/21/2022, 12:56 AMlittle-cartoon-10569
01/21/2022, 1:12 AMassociatePublicIpAddress
property and EC2 will look after it for you.
https://www.pulumi.com/registry/packages/aws/api-docs/ec2/instance/#associatepublicipaddress_nodejslittle-cartoon-10569
01/21/2022, 1:13 AMlittle-cartoon-10569
01/21/2022, 1:14 AMlittle-cartoon-10569
01/21/2022, 1:16 AMassociatePublicIpAddress
will create a DHCP-style public IP address (that will change when you destroy/recreate the instance). If you want a fixed public IP address, you'll want to add an elastic IP on top of the instance.high-grass-3103
01/21/2022, 1:30 AMassociatePublicIpAddress
in this scenario, with two NICs attached.
How do I route traffic between subnets?high-grass-3103
01/21/2022, 9:03 PMassignIpv6AddressOnCreation
is just a default for the option in Instance. Thank you for your help @little-cartoon-10569