How to create an AMI from the command line

0 votes
I was able to create an AMI using the EC2 management console. Is it possible to use the AWS CLI (Command Line Interface) to do the same thing?
Aug 6, 2019 in AWS by Laila
389 views

1 answer to this question.

0 votes

Yes, the CLI can be used to create an AMI. Here are the steps:

- Install the AWS CLI as mentioned here
- Configure the AWS Credentials as mentioned here
- Use the ‘aws create-image’ command to create the new AMI.

answered Aug 13, 2019 by Praveen
• 700 points

Related Questions In AWS

0 votes
1 answer

Create an S3 bucket in a specific region from the command line.

Hi@akhtar, You can use LocationConstraint in your command. ...READ MORE

answered Oct 7, 2020 in AWS by MD
• 95,180 points
96 views
0 votes
1 answer

How to check the state of the snapshot from the command line in AWS?

Hi@akhtar, You can check the state of the snapshot ...READ MORE

answered Oct 20, 2020 in AWS by MD
• 95,180 points
99 views
0 votes
1 answer

How to copy a snapshot in AWS from the command line?

Hi@akhtar, The following copy-snapshot example command copies the specified snapshot ...READ MORE

answered Oct 20, 2020 in AWS by MD
• 95,180 points
158 views
+3 votes
6 answers

How to move files from amazon ec2 to s3 bucket using command line

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,130 points
15,418 views
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,120 points
2,078 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,120 points
2,784 views