Help us shape the future of Go! Take the 2026 Go Developer Survey

aws

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package aws wires the AWS Parameter Store and Secrets Manager adapters into a provider.Factory / provider.Registry. It loads the AWS config (config.go, with the SDK debug logger in debug.go), resolves the caller identity (identity.go, with the ~/.aws/config profile lookup in profile.go), builds SSM and Secrets Manager clients from that config (honoring the scope's region), and hands them to the per-product adapters in the parameterstore and secretsmanager subpackages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *provider.Registry)

Register associates the AWS Factory with provider.ProviderAWS in reg.

Types

type Factory

type Factory struct{}

Factory builds AWS-backed provider.Store values for a scope + kind.

func (Factory) Store

func (Factory) Store(ctx context.Context, scope provider.Scope, kind provider.Kind) (provider.Store, error)

Store builds a Store for the given scope and kind. It returns provider.ErrUnsupportedKind for kinds AWS does not offer.

type Identity added in v1.10.0

type Identity struct {
	AccountID string
	Region    string
	Profile   string
}

Identity contains the AWS account ID, region, and profile name of the caller. Profile is "" when no profile env var names the one in use (see activeProfile).

func LoadIdentity added in v1.10.0

func LoadIdentity(ctx context.Context) (*Identity, error)

LoadIdentity retrieves the current AWS account ID, region, and profile name.

Directories

Path Synopsis
Package parameterstore implements the provider.Store contract for AWS Systems Manager Parameter Store.
Package parameterstore implements the provider.Store contract for AWS Systems Manager Parameter Store.
Package paramtype maps between the provider-neutral domain.ValueType and the AWS SSM Parameter Store type names ("String", "SecureString", "StringList") used in CLI output, the --type flag, and the TUI/GUI type pickers.
Package paramtype maps between the provider-neutral domain.ValueType and the AWS SSM Parameter Store type names ("String", "SecureString", "StringList") used in CLI output, the --type flag, and the TUI/GUI type pickers.
Package secretsmanager implements the provider.Store and provider.Restorer contracts for AWS Secrets Manager.
Package secretsmanager implements the provider.Store and provider.Restorer contracts for AWS Secrets Manager.

Jump to

Keyboard shortcuts

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