Skip to content

Does cnspec have the ability to scan multiple AWS accounts? #736

Closed Answered by chris-rock
chris-rock asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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" # elasti…

Replies: 2 comments

Comment options

chris-rock
Jan 6, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

chris-rock
Jan 6, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by chris-rock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant