Does cnspec have the ability to scan multiple AWS accounts? #736
-
Question from John Anderson in Slack: We are evaluating this as alternative to what we do with cloud custodian. Custodian has a tool c7n-org that allows us to run the policies against multiple AWS accounts. But I don't see a way to say "Run this against all of these accounts", I only see a way to run it against one. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We have different ways to scan multiple AWS accounts:
If you want to configure an inventory that scans multiple AWS accounts, use the following setup with an
Then you scan the system via:
|
Beta Was this translation helpful? Give feedback.
-
I updated the example above. It includes references to the aws config of the profiles to use its credentials. The example uses the apiVersion: v1
kind: Inventory
metadata:
name: mondoo-inventory
labels:
environment: production
spec:
assets:
- id: account-1
connections:
- backend: aws
options:
profile: example-dev
discover:
targets:
- "accounts" # aws account
- "instances" # ec2 instances
- "ssm-instances" # ec2 instances with ssm
- "ecr" # elastic container registry
- "ecs" # elastic container services |
Beta Was this translation helpful? Give feedback.
I updated the example above. It includes references to the aws config of the profiles to use its credentials. The example uses the
accounts
discovery target which focuses purely on the AWS account. You can extend the list with the following entries: