awsutil

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAWSConfig

func LoadAWSConfig(ctx context.Context, dialTimeout time.Duration) (aws.Config, error)

LoadAWSConfig loads AWS SDK config with automatic region detection.

Region resolution order:

  1. AWS_REGION environment variable
  2. EC2 IMDS (if dialTimeout > 0 and AWS_REGION is not set)
  3. SDK defaults (AWS_DEFAULT_REGION, profile, etc.)

Returns an error if AWS config cannot be loaded or if no credentials are found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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