deployer

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformDeployment

func PerformDeployment(depOpts DeploymentOptions) (s string, err error)

PerformDeployment initiates an ECS deployment by

setting desired version in SSM Parameter Store /<env>/<app>/VERSION
bumping the image version in task definition
registering new task definition with the ECS service

func PerformReDeployment added in v0.5.0

func PerformReDeployment(depOpts DeploymentOptions) (s string, err error)

PerformReDeployment initiates an ECS re-deployment

func WaitForDeployment added in v0.3.0

func WaitForDeployment(depOpts DeploymentOptions) (err error)

Types

type DeploymentOptions

type DeploymentOptions struct {
	// Application name as it exists in ECS
	Application string `json:"Application"`
	// Desired version of ECS Application
	Version string `json:"Version"`
	// Environment (ECS Cluster Name) you would like to deploy to
	Environment string `json:"Environment"`
	// Description is an optional parameter adding context to the change
	Description string `json:"Description"`
	// Role is the IAM role to use when invoking a deployment.
	Role string `json:"Role"`
	// MaxAttempts is the Number of attempts to wait for service to become stable, with subsequent 15 sec pause.
	MaxAttempts int `json:"MaxAttempts"`
	// RefreshSecrets will update all container definition secrets to include ssm parameters that exists with the prefix "/<cluster>/service/*"
	RefreshSecrets bool `json:"RefreshSecrets"`
	// The ssm parameter store prefix to pull secrets from. Default: "/<cluster>/service/*"
	SecretsPrefix []string `json:"SecretsPrefix"`
	// DryRun will preview changes
	DryRun bool `json:"DryRun"`
}

DeploymentOptions set the desired state of your deployment

func (*DeploymentOptions) SetDeploymentOptionsByEcsServiceTags added in v0.7.2

func (depOpts *DeploymentOptions) SetDeploymentOptionsByEcsServiceTags() error

type DeploymentResults

type DeploymentResults struct {
	// SuccessfullyInvoked bool value depicting a successful deployment invocation
	SuccessfullyInvoked bool   `json:"SuccessfullyInvoked"`
	ClusterArn          string `json:"ClusterArn"`
	ServiceArn          string `json:"ServiceArn"`
	ServiceName         string `json:"ServiceName"`
	TaskDefinition      string `json:"TaskDefinition"`
}

DeploymentResults maintain the depyments latest results

type Diff added in v0.6.0

type Diff struct {
	// contains filtered or unexported fields
}

Diff represents data to be added and removed

func NewDiff added in v0.6.0

func NewDiff(resource string, name string) Diff

func (*Diff) AddChange added in v0.6.0

func (diff *Diff) AddChange(key, x, y string)

func (Diff) String added in v0.6.0

func (diff Diff) String() string

Jump to

Keyboard shortcuts

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