Documentation ¶
Index ¶
- func CreateSecretsStore(awsConfig types.AwsConfig) error
- func DeleteSecrets(secretKeys []string, awsConfig types.AwsConfig) error
- func GetImageNames(deployConfig types.DeployConfig, dockerComposeDir string, ...) (map[string]string, error)
- func InitAccount(awsConfig types.AwsConfig) error
- func MergeAndWriteSecrets(existingSecrets, newSecrets types.Secrets, awsConfig types.AwsConfig) error
- func PushImages(deployConfig types.DeployConfig, dockerComposePath string) (map[string]string, error)
- func ReadSecrets(awsConfig types.AwsConfig) (types.Secrets, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecretsStore ¶
CreateSecretsStore creates an S3 bucket and file object used for secrets management
func DeleteSecrets ¶
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 ¶
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
Types ¶
This section is empty.