aws

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package aws allows to fetch secrets from Aws SSM and Secrets Manager service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigFromBackendConfig

func NewConfigFromBackendConfig(sessionConfig SessionBackendConfig) (
	*aws.Config, error)

NewConfigFromBackendConfig returns a new config for AWS

Types

type SSMParameterStoreBackend

type SSMParameterStoreBackend struct {
	Config SSMParameterStoreBackendConfig
	Client ssmClient
}

SSMParameterStoreBackend represents backend for AWS SSM

func NewSSMParameterStoreBackend

func NewSSMParameterStoreBackend(bc map[string]interface{}) (*SSMParameterStoreBackend, error)

NewSSMParameterStoreBackend returns a new AWS SSM backend

func (*SSMParameterStoreBackend) GetSecretOutput

func (b *SSMParameterStoreBackend) GetSecretOutput(secretKey string) secret.Output

GetSecretOutput returns a the value for a specific secret

type SSMParameterStoreBackendConfig

type SSMParameterStoreBackendConfig struct {
	Session     SessionBackendConfig `mapstructure:"aws_session"`
	BackendType string               `mapstructure:"backend_type"`
}

SSMParameterStoreBackendConfig is the configuration for a AWS SSM backend

type SecretsManagerBackend

type SecretsManagerBackend struct {
	Config SecretsManagerBackendConfig
	Client secretsManagerClient
}

SecretsManagerBackend represents backend for AWS Secret Manager

func NewSecretsManagerBackend

func NewSecretsManagerBackend(bc map[string]interface{}) (
	*SecretsManagerBackend, error)

NewSecretsManagerBackend returns a new AWS Secret Manager backend

func (*SecretsManagerBackend) GetSecretOutput

func (b *SecretsManagerBackend) GetSecretOutput(secretString string) secret.Output

GetSecretOutput returns a the value for a specific secret

type SecretsManagerBackendConfig

type SecretsManagerBackendConfig struct {
	Session     SessionBackendConfig `mapstructure:"aws_session"`
	BackendType string               `mapstructure:"backend_type"`
	ForceString bool                 `mapstructure:"force_string"`
	SecretID    string               `mapstructure:"secret_id"`
}

SecretsManagerBackendConfig is the configuration for a AWS Secret Manager backend

type SessionBackendConfig

type SessionBackendConfig struct {
	Region          string `mapstructure:"aws_region"`
	AccessKeyID     string `mapstructure:"aws_access_key_id"`
	SecretAccessKey string `mapstructure:"aws_secret_access_key"`
	Profile         string `mapstructure:"aws_profile"`
	RoleArn         string `mapstructure:"aws_role_arn"`
	ExternalID      string `mapstructure:"aws_external_id"`
}

SessionBackendConfig is the session configuration for AWS backends

Jump to

Keyboard shortcuts

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