Documentation
¶
Overview ¶
Package awscfg provides a shared AWS configuration resolver used by all AWS-backed blocks. It decouples blocks from the specifics of credential loading while keeping the public API minimal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Resolver)
Option configures a Resolver.
func WithConfig ¶
WithConfig injects a fully-built aws.Config, bypassing all automatic credential and region resolution. Use this when you manage the AWS config yourself (e.g. in tests or multi-account setups).
func WithEndpoint ¶
WithEndpoint overrides the service endpoint URL. Used for local development with LocalStack, DynamoDB Local, MinIO, etc.
func WithProfile ¶
WithProfile selects a named profile from the AWS shared credentials file. Ignored when WithConfig is provided.
func WithRegion ¶
WithRegion sets the AWS region. Ignored when WithConfig is provided.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver builds an aws.Config from a prioritised set of options.
Priority (highest first):
- Explicit aws.Config via WithConfig
- Environment variables / default credential chain (with optional overrides)