Search code examples
amazon-web-servicesamazon-elastic-beanstalkamazon-iam

AWS CLI - Get required permissions to execute specific command


When creating specific role/policy to assume for some pipelines which execute aws cli commands. So my questions is, are there any way to figure out which permissions are required to execute some aws cli commands?

For example, which permissions are required to be part of the role to perform an Elastic Beanstalk environment update with aws elasticbeanstalk update-environment?


Solution

  • You can try using iamlive, which allows you to generate IAM policies from AWS calls.