Skip to content

Better validation of YAML? #1104

@shimonp21

Description

@shimonp21

Describe the Bug

Resources are fetched from all regions, not the regions specified in config.

Expected Behavior

resources should only be fetched from the resources specified in config

CloudQuery Version

Version: 0.30.0
provider version: v0.12.25

Steps to Reproduce

cloudquery:
    providers:
        - name: aws
          version: latest
    connection:
        type: postgres
        username: postgres
        password: pass
        host: localhost
        port: 5432
        database: postgres
        sslmode: disable
providers:
    # provider configurations
    - name: aws
      configuration:
      # Optional, Repeated. Add an accounts block for every account you want to assume-role into and fetch data from.
      # accounts:
      #   - id: <UNIQUE ACCOUNT IDENTIFIER>
      # Optional. Role ARN we want to assume when accessing this account
      #     role_arn: < YOUR_ROLE_ARN >
      # Optional. Named profile in config or credential file from where CQ should grab credentials
      #     local_profile: < PROFILE_NAME >
      # Optional. by default assumes all regions
      regions:
        - eu-west-3
      # Optional. Enable AWS SDK debug logging.
      #   aws_debug: false
      # The maximum number of times that a request will be retried for failures. Defaults to 10 retry attempts.
      # max_retries: 10
      # The maximum back off delay between attempts. The backoff delays exponentially with a jitter based on the number of attempts. Defaults to 30 seconds.
      # max_backoff: 30
      #
      # list of resources to fetch
      resources:
        - ec2.vpcs
        - ec2.instances

Additional Context

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions