[how-to] Restore EC2 with Same Private IP Using AWS Backup & CloudShell
Автор: Bhagaskara Labs
Загружено: 2025-08-01
Просмотров: 255
Learn how to restore your EC2 instance and retain the same private IP address using AWS Backup and CloudShell.
Before we dive in, make sure you’ve completed these steps:
✅ You’ve backed up your EC2 instance using AWS Backup.
✅ The backup created an AMI, now visible in the EC2 AMI dashboard.
✅ You have the following ready:
— Instance type
— Subnet ID
— Desired private IP
— And your security group ID.
Also, be sure the original instance is terminated—this frees up the IP."
To launch the restored instance, open AWS CloudShell and run the aws ec2 run-instances command.
You’ll assign the same private IP manually, and use the AMI generated from your backup. Here’s the command template you’ll need:
aws ec2 run-instances \
--image-id ami-xxxxxxxxxxxxxxx \
--count 1 \
--instance-type xxxxxxxxxxx \
--subnet-id subnet-xxxxxxxxxxxxx \
--private-ip-address xxxxxxxxxxxxxxx \
--security-group-ids sg-xxxxxxxxxxxxxx
Replace each placeholder with your specific values.
#AWS #EC2 #CloudShell #AWSBackup #BhagaskaraLabs
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: