aws

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecretsStore

func CreateSecretsStore(awsConfig types.AwsConfig) error

CreateSecretsStore creates an S3 bucket and file object used for secrets management

func DeleteSecrets

func DeleteSecrets(secretKeys []string, awsConfig types.AwsConfig) error

DeleteSecrets deletes a list of secrets provided their keys. Ignores them if they don't exist

func GetImageNames

func GetImageNames(deployConfig types.DeployConfig, dockerComposeDir string, dockerCompose types.DockerCompose) (map[string]string, error)

GetImageNames returns a mapping from service/dependency names to image name on the user's machine

func InitAccount

func InitAccount(awsConfig types.AwsConfig) error

InitAccount prepares a blank AWS account to be used with Terraform

func MergeAndWriteSecrets

func MergeAndWriteSecrets(existingSecrets, newSecrets types.Secrets, awsConfig types.AwsConfig) error

MergeAndWriteSecrets merges two secret maps and writes them to s3 Overwrites existingSecrets's values if the are conflicting keys

func PushImages

func PushImages(deployConfig types.DeployConfig, dockerComposePath string) (map[string]string, error)

PushImages does the following: Create the image repository on ECR if it doesn't exist Tags application images Retrieves ECR credentials Pushes images to ECR Returns a map from service name to image name on ECR

func ReadSecrets

func ReadSecrets(awsConfig types.AwsConfig) (types.Secrets, error)

ReadSecrets reads secret key value pair from remote store

Types

This section is empty.

Jump to

Keyboard shortcuts

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