How to copy an AMI to another region using AWS CLI

0 votes

Hi Team,

I have created one customized AMI in AWS. I want to copy the AMI to another region using AWS CLI. Can anyone tell me, how can I do that?

Nov 5, 2020 in AWS by akhtar
• 38,230 points
533 views

1 answer to this question.

0 votes

Hi@akhtar,

You can copy an AMI from the specified source region to the current Region. You need to specify the destination Region by using its endpoint when making the request. The following example copies the specified AMI from the us-east-1 region to the ap-northeast-1 region.

$ aws ec2 copy-image --source-image-id ami-5731123e --source-region us-east-1 --region ap-northeast-1 --name "My server"
answered Nov 5, 2020 by MD
• 95,440 points

Related Questions In AWS

0 votes
1 answer
+1 vote
2 answers

How to launch and access an instance using AWS-CLI?

aws ec2 run-instances --image-id ami-id --key-name yourkeyname ...READ MORE

answered Feb 23, 2019 in AWS by Shashank
• 1,370 points
1,598 views
0 votes
1 answer

How to create an ECS cluster using AWS CLI?

Hi@akhtar, You can create a new Amazon ECS cluster. ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,440 points
718 views
0 votes
1 answer

How to delete an empty ECS cluster using AWS CLI?

Hi@akhtar, You can delete the specified ECS cluster. The ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,440 points
1,494 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

How to copy AMI from one region to another region in AWS?

Hi@akhtar, To copy your AMI from one region ...READ MORE

answered Jun 7, 2020 in AWS by MD
• 95,440 points
5,147 views
0 votes
1 answer

How to delete an IAM user using AWS CLI?

Hi@akhtar, You can delete the specified IAM user. ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,440 points
1,611 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP