ssm

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSMSecretSource

func NewSSMSecretSource(ctx context.Context, cfg *Config, client GetParameterAPI) (secrets.SecretSource, error)

NewSSMSecretSource creates a SecretSource backed by AWS SSM Parameter Store. If client is nil, a new client is created using the default credential chain.

Types

type Config

type Config struct {
	Region string `env:"REGION" json:"region"`
	Prefix string `env:"PREFIX" json:"prefix,omitempty"`
}

Config configures the AWS SSM Parameter Store client.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates the config.

type GetParameterAPI

type GetParameterAPI interface {
	GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}

GetParameterAPI abstracts GetParameter for testability.

Jump to

Keyboard shortcuts

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