awsconfig

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 6 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 ActiveClusterName

func ActiveClusterName() string

ActiveClusterName returns the cluster name from the active context, if any. Used by ClusterName resolution as a fallback before prompting.

func Load

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

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

  1. CLI flags --profile / --region (if c 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