aws

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: BSD-3-Clause Imports: 12 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 {
	BackendID string
	Config    SSMParameterStoreBackendConfig
	Secret    map[string]string
}

SSMParameterStoreBackend represents backend for AWS SSM

func NewSSMParameterStoreBackend

func NewSSMParameterStoreBackend(backendID string, 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"`
	ParameterPath string               `mapstructure:"parameter_path"`
	Parameters    []string             `mapstructure:"parameters"`
}

SSMParameterStoreBackendConfig is the configuration for a AWS SSM backend

type SecretsManagerBackend

type SecretsManagerBackend struct {
	BackendID string
	Config    SecretsManagerBackendConfig
	Secret    map[string]string
}

SecretsManagerBackend represents backend for AWS Secret Manager

func NewSecretsManagerBackend

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

NewSecretsManagerBackend returns a new AWS Secret Manager backend

func (*SecretsManagerBackend) GetSecretOutput

func (b *SecretsManagerBackend) GetSecretOutput(secretKey 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