How can i create an AMI of the instance using the cli command ? . I ahve referred the official documentation - https://docs.aws.amazon.com/cli/latest/reference/ec2/create-image.html . I also have need to create a snapshot of the attached volume
This is the command i am trying ,
aws ec2 create-image --instance-id "instance-id" --name "my-image-nov-9"
But I need additional parameters to include the tag for the created image
Use this CLI command to create the AMI of an instance