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.
type GetParameterAPI ¶
type GetParameterAPI interface {
GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}
GetParameterAPI abstracts GetParameter for testability.
Click to show internal directories.
Click to hide internal directories.