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
Click to show internal directories.
Click to hide internal directories.