deployer

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 9 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 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"`
}

DeploymentOptions set the desired state of your deployment

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

Jump to

Keyboard shortcuts

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