Skip to content

Commit

Permalink
update cnspec AWS doc (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
misterpantz authored Oct 8, 2024
1 parent d64c718 commit 6eb3746
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/cnspec/cloud/aws/account.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,10 @@ You can also create your own policies to meet your specific needs. To learn more
To assess AWS resources that you don't normally have access to, you can use an [assumed role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html):

```bash
cnspec scan aws --option role-arn=ROLEARN
cnspec scan aws --role ROLE-ARN
```

For `ROLEARN`, substitute the role's Amazon resource name (ARN).

cnspec supports assumed roles with [external IDs](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html):

```bash
cnspec scan aws --option role-arn=ROLEARN --option external-id=EXTERNALID
```

For `ROLEARN`, substitute the role's Amazon resource name (ARN). For `EXTERNALID`, substitute the external ID for the assumed role.
For `ROLE-ARN`, substitute the role's Amazon resource name (ARN).

## Test AWS with the cnspec shell

Expand Down

0 comments on commit 6eb3746

Please sign in to comment.