0
0
AWScloud~10 mins

Elastic IP addresses in AWS - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Elastic IP addresses
Request Elastic IP
AWS allocates Elastic IP
Associate Elastic IP with EC2 Instance
Instance uses Elastic IP for communication
Disassociate or Release Elastic IP
Elastic IP becomes free or reassigned
This flow shows how you request, allocate, associate, and release an Elastic IP address in AWS.
Execution Sample
AWS
1. Allocate Elastic IP
2. Associate Elastic IP with EC2 instance
3. Use Elastic IP for external access
4. Disassociate Elastic IP
5. Release Elastic IP
This sequence shows the lifecycle of an Elastic IP address from allocation to release.
Process Table
StepActionAWS State ChangeElastic IP StatusInstance IP Status
1Allocate Elastic IPElastic IP allocated and reservedAllocated, not associatedInstance has private IP only
2Associate Elastic IP with EC2 instanceElastic IP linked to instanceAssociatedInstance now reachable via Elastic IP
3Instance uses Elastic IPTraffic routed through Elastic IPAssociatedInstance accessible publicly
4Disassociate Elastic IPElastic IP unlinked from instanceAllocated, not associatedInstance loses public IP
5Release Elastic IPElastic IP returned to AWS poolReleasedInstance has private IP only
💡 Elastic IP released back to AWS, no longer associated with any instance.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 4Final
Elastic IP StatusNoneAllocatedAssociatedAllocatedReleased
Instance Public IPNoneNoneElastic IP assignedNoneNone
Key Moments - 3 Insights
Why does the instance lose its public IP after disassociation?
Because the Elastic IP is no longer linked to the instance (see execution_table step 4), the instance reverts to only its private IP.
Can you use an Elastic IP without associating it to an instance?
No, an Elastic IP must be associated with an instance to route traffic (see execution_table step 1 vs step 2).
What happens if you release an Elastic IP without disassociating it first?
AWS automatically disassociates it before releasing, so the Elastic IP becomes free and the instance loses public IP (implied in step 5).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the Elastic IP status after step 3?
AAllocated, not associated
BAssociated
CReleased
DDisassociated
💡 Hint
Check the 'Elastic IP Status' column at step 3 in the execution_table.
At which step does the instance lose its public IP?
AStep 4
BStep 2
CStep 3
DStep 5
💡 Hint
Look at the 'Instance IP Status' column in execution_table for when it changes from 'Elastic IP assigned' to 'None'.
If you skip step 4 and directly release the Elastic IP, what happens to the instance's public IP?
AElastic IP remains associated but unusable
BInstance keeps the Elastic IP
CInstance loses the public IP automatically
DInstance gets a new Elastic IP automatically
💡 Hint
Refer to key_moments about releasing Elastic IP without disassociation.
Concept Snapshot
Elastic IP addresses are static public IPs you allocate from AWS.
You must associate them with an EC2 instance to enable public access.
Disassociating removes the public IP from the instance.
Releasing returns the IP to AWS and frees it for others.
Use Elastic IPs to keep a fixed public IP even if instance stops or restarts.
Full Transcript
Elastic IP addresses in AWS are static public IPs that you can allocate and assign to your EC2 instances. The process starts by requesting an Elastic IP, which AWS reserves for your use. Then you associate this Elastic IP with an EC2 instance, allowing it to be reachable from the internet using that fixed IP. When the instance uses the Elastic IP, all external traffic routes through it. If you disassociate the Elastic IP, the instance loses its public IP and becomes reachable only via its private IP. Finally, releasing the Elastic IP returns it to AWS's pool, making it available for others. This lifecycle ensures you can maintain a consistent public IP for your instance even if it stops or restarts.