snyk / snyk/driftctl-docs

AWS Least Privilege Role: Missing AWS Cloudformation Permission

Open
#289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
7
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AWS authentication documentation for v0.40 and compare its least-privilege policy with the current policy at https://docs.driftctl.com/aws/policy. Confirm how the cloudformation:ListStacks denial relates to the documented permissions; done means the documentation reflects the required read-only permission and the reported warning is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.