Documentation ¶
Index ¶
- func CreateAwsConfig(awsConfig types.AwsConfig) *aws.Config
- func CreateRepository(ecrClient *ecr.ECR, repositoryName string) (string, error)
- func CreateSecretsStore(awsConfig types.AwsConfig) error
- func DeleteSecrets(secretKeys []string, awsConfig types.AwsConfig) error
- func GetECRCredentials(ecrClient *ecr.ECR) (string, error)
- func InitAccount(awsConfig types.AwsConfig) error
- func MergeAndWriteSecrets(existingSecrets, newSecrets types.Secrets, awsConfig types.AwsConfig) error
- func ReadSecrets(awsConfig types.AwsConfig) (types.Secrets, error)
- type RepositoryHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAwsConfig ¶ added in v0.28.1
CreateAwsConfig returns an aws.Config for the given profile and region
func CreateRepository ¶ added in v0.28.1
CreateRepository creates a repository with the given name if one does not exist returns the repositoryURI
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 GetECRCredentials ¶ added in v0.28.1
GetECRCredentials returns base64 encoded ECR auth object
func InitAccount ¶
InitAccount prepares a blank AWS account to be used with Terraform
Types ¶
type RepositoryHelper ¶ added in v0.28.1
type RepositoryHelper struct { EcrAuth string EcrClient *ecr.ECR ImageName string RepositoryName string RepositoryURI string ImageVersion string }
RepositoryHelper is used for help pushing an image to ECR
func (*RepositoryHelper) GetTaggedImageName ¶ added in v0.28.1
func (r *RepositoryHelper) GetTaggedImageName() string
GetTaggedImageName returns the image name on ECR
func (*RepositoryHelper) NeedsPush ¶ added in v0.28.1
func (r *RepositoryHelper) NeedsPush() (bool, error)
NeedsPush returns whether or not the image needs to be pushed
func (*RepositoryHelper) Push ¶ added in v0.28.1
func (r *RepositoryHelper) Push() error
Push pushes the image to ECR