Home > front end >  How to get AWS policy needed to run a specific CLI command?
How to get AWS policy needed to run a specific CLI command?

Time:01-24

I am new to AWS. I am trying to import an OVA to a AMI and use it for an EC2 instance as described enter image description here

Is there an easy way to determine which policies are needed to run an AWS Cli command?

CodePudding user response:

There is not an easy way. The CLI commands usually (but not always) map to a single IAM action that you need permission to perform. In your case, it appears you need the ec2:DescribeImportImageTasks permission, as listed here.

  • Related