Documentation
¶
Index ¶
- func NewCluster(e aws.Environment, name string, opts ...Option) (*ecsComp.Cluster, error)
- func Run(ctx *pulumi.Context) error
- func RunWithEnv(ctx *pulumi.Context, awsEnv resourcesAws.Environment, env outputs.ECSOutputs, ...) error
- type FargateWorkloadAppFunc
- type Option
- type Params
- type RunOption
- func WithAgentOptions(opts ...ecsagentparams.Option) RunOption
- func WithECSOptions(opts ...Option) RunOption
- func WithFakeIntakeOptions(opts ...scenfi.Option) RunOption
- func WithFargateWorkloadApp(appFunc FargateWorkloadAppFunc) RunOption
- func WithTestingWorkload() RunOption
- func WithWorkloadApp(appFunc WorkloadAppFunc) RunOption
- func WithoutFakeIntake() RunOption
- type RunParams
- type WorkloadAppFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCluster ¶
func Run ¶
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 ¶
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 RunOption ¶ added in v0.75.0
func WithAgentOptions ¶ added in v0.75.0
func WithAgentOptions(opts ...ecsagentparams.Option) RunOption
WithAgentOptions sets agent options
func WithECSOptions ¶ added in v0.75.0
WithECSOptions sets ECS cluster options
func WithFakeIntakeOptions ¶ added in v0.75.0
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 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