Documentation ¶
Index ¶
Constants ¶
View Source
const ( OutputMasterKey = "kmsKey" OutputSecretsDynamoTable = "secretsDynamoTable" )
Variables ¶
This section is empty.
Functions ¶
func GetCreatedKMSCMKID ¶
func GetCreatedKMSCMKID(stack *cloudformation.Stack) (string, error)
GetCreatedKMSCMKID returns the master key id for the created KMS Key from the cloudformation stack output
func GetCreatedSecretsTableName ¶
func GetCreatedSecretsTableName(stack *cloudformation.Stack) (string, error)
GetSecretsTableName returns the dynamodb table created for storing secrets from the cloudformation stack output
func GetSecretsTableName ¶
GetSecretsTableName returns the DynamoDB table used for storing secrets
Types ¶
type Client ¶
type Client interface { CreateStack(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) DeleteStack(*cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) DescribeStacks(*cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) DescribeStackEvents(input *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) WaitUntilStackCreateComplete(input *cloudformation.DescribeStacksInput) error WaitUntilStackDeleteComplete(input *cloudformation.DescribeStacksInput) error }
Client defines a subset of the cloudformation client methods. The methods defined here are used to interact with Cloudformation service
type Stacker ¶
type Stacker interface { CreateStack(appName string, createSecretsPrincipal string, fetchSecretsRole string) (*cloudformation.Stack, error) DeleteStack(appName string) error }
Stacker defines an interface for creating the cloudformation stack required for saving and retrieving secrets
func NewStacker ¶
NewStacker returns a new 'stacker' object that implements the Stacker interface
Click to show internal directories.
Click to hide internal directories.