Allocating and Associating Elastic IP to an EC2 Instance
Learn how to allocate and attach an Elastic IP to an EC2 instance for consistent public access.

Lab overview
An Elastic IP (EIP) in AWS is a static, public IPv4 address designed to provide consistent and reliable access to your EC2 instances. Unlike dynamic public IPs that change when instances are stopped or restarted, Elastic IPs remain fixed and associated with your account until explicitly released, making them essential for DNS mappings, firewall rules, and applications requiring persistent public endpoints.
In this lab, you will allocate an Elastic IP address and associate it with a pre-deployed EC2 instance running Apache web server. You'll learn how to manage static IP addresses, understand the difference between dynamic and static addressing, and verify connectivity to ensure consistent access to your cloud resources.
Objectives
Upon completion of this beginner level lab, you will be able to:
- Allocate an Elastic IP address from AWS's available IP pool
- Associate the Elastic IP with an existing EC2 instance
- Verify successful IP association through the AWS Management Console
- Test connectivity to confirm the static IP configuration is working properly
Who is this lab for?
This lab is designed for:
- Cloud engineers starting with AWS networking fundamentals
- System administrators managing EC2 instances
- DevOps professionals implementing infrastructure reliability
- Anyone learning AWS networking and IP address management
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.
More labs like this
Launch an EC2 Instance using AWS Lambda Function
Learn how to create a Python Lambda function to automatically provision EC2 instances, demonstrating serverless automation for AWS infrastructure deployment.
Deploy Amazon EC2 Instance in AWS Cloud
Deploy Amazon EC2 Instance in AWS Cloud in this hands-on lab.
Working with AWS VPC Flow Logs to Log and View Network Traffic
Learn to configure AWS VPC Flow Logs to monitor network traffic in your AWS environment.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Signing into AWS Console
- 02
Allocating and Associating Elastic IP to an EC2 Instance
1 automated check
Not the lab you were looking for?
Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.