awsconfig

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package awsconfig wraps aws/config.LoadDefaultConfig with the CLI's context resolution, so every command transparently honors the active `refresh use` selection (region/profile) without each call site re-implementing the chain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, cmd *cli.Command) (aws.Config, error)

Load returns an aws.Config with profile/region resolved from (in order):

  1. CLI flags --profile / --region (if cmd is non-nil and they are set)
  2. Standard AWS env vars (AWS_PROFILE, AWS_REGION) — handled by SDK
  3. The active refresh context (from cliconfig)
  4. AWS SDK defaults (~/.aws/config, IMDS, etc.)

CLI-supplied values always win so the user can override the active context for a single invocation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL