Home › Forums › AWS › AWS Certified Solutions Architect Associate › Accessing EC2 in default Subnet
-
Accessing EC2 in default Subnet
Rumman updated 3 years, 10 months ago 2 Members · 3 Posts -
For accessing an EC2 instance in the default subnet can we always access it from the internet if security groups and nat ACLS are configured properly? Or there might be time when we need to attach an elastic IP address even for the default subnet?
-
Hello muhammad-r,
Whenever you instantiate an EC2 instance in the default VPC, AWS automatically associates a public IP address with it. AWS releases that public IP address and assigns a new one when you restart the EC2 instance.
EIP is a static IPv4 address. You can optionally attach an EIP to an instance hosted on a default VPC. One of the advantages of using an EIP is that you can mask an instance’s failure by remapping the EIP to another instance.
Let me know if that answers your question.
Regards,
Carlo
- This reply was modified 3 years, 10 months ago by Carlo-TutorialsDojo.
Log in to reply.