deploy

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DevEnv = EnvConfig{
		Profile: profilePrefix + "dev",
	}

	ProdEnv = EnvConfig{
		Profile:        profilePrefix + "prod",
		SyncSecretsDry: true,
	}

	FeatureEnv = EnvConfig{
		Profile:        profilePrefix + "feature",
		ExtraSLSParams: `--param="stage=feature"`,
	}
)

Functions

func DeployFunction

func DeployFunction(env EnvConfig, serviceArg string, functionNames []string) error

DeployFunction packages and deploys one or more Lambda functions using the given env config. serviceArg can be a service name or a path. All functions must belong to the same service.

Types

type DeployResult

type DeployResult struct {
	Name string // original arg (name or path as passed by user)
	Err  error
}

DeployResult holds the outcome of deploying a single service.

func DeployService

func DeployService(env EnvConfig, args []string) []DeployResult

DeployService deploys one or more services (by name or path) using the given env config.

type EnvConfig

type EnvConfig struct {
	Profile        string // e.g. "draftea-dev", "draftea-prod", "draftea-feature"
	ExtraSLSParams string // non-empty only for feature: --param="stage=feature"
	SyncSecretsDry bool   // if true, sets SLS_SYNC_SECRETS_DRY=true to skip secrets sync
}

EnvConfig holds the deployment configuration for a target environment.

func (EnvConfig) Stage

func (e EnvConfig) Stage() string

Stage derives the stage name from the profile by stripping the profilePrefix.

Jump to

Keyboard shortcuts

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