Tuesday, April 6, 2021

Allocating an Elastic IP address

https://acloud.guru/forums/aws-certified-developer-associate/discussion/-KWNvUYgAm9vU6e-7E_4/one-subnet-one-availability-zone-but-i-can-create-two-subnet-within-one-availabi#:~:text=The%20definition%20%221%20subnet%20%3D%201,and%20can't%20span%20zones.&text=One%20Subnet%20can%20span%20only,by%20default%20inside%20one%20VPC.

https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html

https://www.computerhope.com/jargon/i/ip.htm

An Elastic IP address is a static, public IPv4 address designed for dynamic cloud computing. You can associate an Elastic IP address with any instance or network interface in any VPC in your account. With an Elastic IP address, you can mask the failure of an instance by rapidly remapping the address to another instance in your VPC.

Starting from the introduction of VPC (Virtual Private Cloud), we have the ability to specify whether an EC2 instance should have a public IP address or not.

In some three-tier architectures, none of EC2 instances have public IP addresses and only public ELBs (Elastic Load Balancers) have them. The ELBs are used to accept traffic from the internet.

AWS has a giant pool of public IP addresses. The IP ranges are published here : https://ip-ranges.amazonaws.com/ip-ranges.json.

When an IP address is disassociated from an EC2 instance (for example when the instance is terminated), the IP address is returned back to the pool and may not be reused. Because of the nature of cloud computing where instances come and go, the risk for AWS to run out of IP address in the pool is somewhat reduced.

You can also claim a public IP address from Amazon’s pool into your account and associate it with your EC2 instance instead of relying on AWS to randomly assign it every time. It is called Elastic IP Address. It gives you the ability to assign “static” IP address to your instance. The default limit is 5 IP addresses per region (can be increased to some extent by contacting AWS support).

Elastic IP Address in your account that is not associated to any EC2 instance will incur cost. That is to discourage people from hoarding a large number of unused IP addresses in the account.

1 comment:

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass