ecs

package
v0.81.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(e aws.Environment, name string, opts ...Option) (*ecsComp.Cluster, error)

func Run

func Run(ctx *pulumi.Context) error

Run is the entry point for the scenario when run via pulumi. It uses outputs.ECS which is lightweight and doesn't pull in test dependencies.

func RunWithEnv added in v0.75.0

func RunWithEnv(ctx *pulumi.Context, awsEnv resourcesAws.Environment, env outputs.ECSOutputs, params *RunParams) error

RunWithEnv deploys an ECS environment using provided env and params. It accepts ECSOutputs interface, enabling reuse between provisioners and direct Pulumi runs.

Types

type FargateWorkloadAppFunc added in v0.75.0

type FargateWorkloadAppFunc func(e aws.Environment, clusterArn pulumi.StringInput, apiKeySSMParamName pulumi.StringInput, fakeIntake *fakeintakeComp.Fakeintake) (*ecsComp.Workload, error)

FargateWorkloadAppFunc deploys a Fargate workload app to an ECS cluster

type Option

type Option = func(*Params) error

func WithFargateCapacityProvider

func WithFargateCapacityProvider() Option

func WithLinuxARMNodeGroup

func WithLinuxARMNodeGroup() Option

func WithLinuxBottleRocketNodeGroup

func WithLinuxBottleRocketNodeGroup() Option

func WithLinuxNodeGroup

func WithLinuxNodeGroup() Option

func WithWindowsNodeGroup

func WithWindowsNodeGroup() Option

type Params

type Params struct {
	FargateCapacityProvider    bool
	LinuxNodeGroup             bool
	LinuxARMNodeGroup          bool
	LinuxBottleRocketNodeGroup bool
	WindowsNodeGroup           bool
}

func NewParams

func NewParams(options ...Option) (*Params, error)

type RunOption added in v0.75.0

type RunOption = func(*RunParams) error

func WithAgentOptions added in v0.75.0

func WithAgentOptions(opts ...ecsagentparams.Option) RunOption

WithAgentOptions sets agent options

func WithECSOptions added in v0.75.0

func WithECSOptions(opts ...Option) RunOption

WithECSOptions sets ECS cluster options

func WithFakeIntakeOptions added in v0.75.0

func WithFakeIntakeOptions(opts ...scenfi.Option) RunOption

WithFakeIntakeOptions sets fakeintake options

func WithFargateWorkloadApp added in v0.75.0

func WithFargateWorkloadApp(appFunc FargateWorkloadAppFunc) RunOption

WithFargateWorkloadApp adds a Fargate workload app

func WithTestingWorkload added in v0.75.0

func WithTestingWorkload() RunOption

WithTestingWorkload enables testing workloads

func WithWorkloadApp added in v0.75.0

func WithWorkloadApp(appFunc WorkloadAppFunc) RunOption

WithWorkloadApp adds an EC2 workload app

func WithoutFakeIntake added in v0.75.0

func WithoutFakeIntake() RunOption

WithoutFakeIntake disables fakeintake

type RunParams added in v0.75.0

type RunParams struct {
	Name string
	// contains filtered or unexported fields
}

RunParams collects parameters for the ECS scenario

func GetRunParams added in v0.75.0

func GetRunParams(opts ...RunOption) *RunParams

func ParamsFromEnvironment added in v0.75.0

func ParamsFromEnvironment(e aws.Environment) *RunParams

ParamsFromEnvironment maps environment to ECS scenario params

type WorkloadAppFunc added in v0.75.0

type WorkloadAppFunc func(e aws.Environment, clusterArn pulumi.StringInput) (*ecsComp.Workload, error)

WorkloadAppFunc deploys a workload app to an ECS cluster

Jump to

Keyboard shortcuts

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