snyk / driftctl-docs

Docs site for driftctl
https://docs.driftctl.com
MIT License
5 stars 14 forks source link

AWS Least Privilege Role: Missing AWS Cloudformation Permission #289

Open zzzaJ opened 6 months ago

zzzaJ commented 6 months ago

After using the AWS IAM least privilege role permissions set provided on the docs for v0.40 (https://docs.driftctl.com/0.40.0/providers/aws/authentication/), I got the following warning output from the CLI tool:

An error occured listing aws_cloudformation_stack: listing aws_cloudformation_stack is forbidden: AccessDenied: User: arn:aws:iam::12345678910:user/driftctl is not authorized to perform: cloudformation:ListStacks on resource: arn:aws:cloudformation:eu-west-2:12345678910:stack// because no identity-based policy allows the cloudformation:ListStacks action

It seems that we got access denied exceptions while listing resources. The latest minimal read-only IAM policy for driftctl is always available here, please update yours: https://docs.driftctl.com/aws/policy

Is this a missing permission in the documentation?