Skip to content

Support configuration of service endpoints #1381

@timoguin

Description

@timoguin

I would like to run CloudQuery against alternative endpoints, primarily for testing purposes. This would allow running CloudQuery against something like localstack to accelerate testing.

To facilitate this, the AWS SDKs allow supplying a map of service names to endpoints. To expose this option to CloudQuery, the AWS provider would need it's config schema updated to allow specifying this mapping, and the client initialization logic will need to support the EndpointResolver.

The Terraform AWS provider is a great reference for this. It allows configuration such as the following:

provider "aws" {
  endpoints {
    dynamodb = "http://localhost:4569"
    s3       = "http://localhost:4572"
  }
}

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