Documentation ¶
Overview ¶
Package ecs contains the definition of the AWS ECS environment.
Index ¶
- func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.ECS]
- func Run(ctx *pulumi.Context, env *environments.ECS, params *ProvisionerParams) error
- type FargateWorkloadAppFunc
- type ProvisionerOption
- func WithAgentOptions(opts ...ecsagentparams.Option) ProvisionerOption
- func WithAwsEnv(env *aws.Environment) ProvisionerOption
- func WithECSOptions(opts ...ecs.Option) ProvisionerOption
- func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
- func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
- func WithFargateWorkloadApp(appFunc FargateWorkloadAppFunc) ProvisionerOption
- func WithInfraShouldDeployFakeintakeWithLB() ProvisionerOption
- func WithTestingWorkload() ProvisionerOption
- func WithWorkloadApp(appFunc WorkloadAppFunc) ProvisionerOption
- func WithoutAgent() ProvisionerOption
- func WithoutFakeIntake() ProvisionerOption
- type ProvisionerParams
- type WorkloadAppFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provisioner ¶
func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.ECS]
Provisioner creates a VM environment with an EC2 VM with Docker, an ECS Fargate FakeIntake and a Docker Agent configured to talk to each other. FakeIntake and Agent creation can be deactivated by using WithoutFakeIntake and WithoutAgent options.
func Run ¶
func Run(ctx *pulumi.Context, env *environments.ECS, params *ProvisionerParams) error
Run deploys a ECS environment given a pulumi.Context
Types ¶
type FargateWorkloadAppFunc ¶
type FargateWorkloadAppFunc func(e aws.Environment, clusterArn pulumi.StringInput, apiKeySSMParamName pulumi.StringInput, fakeIntake *fakeintakeComp.Fakeintake) (*ecsComp.Workload, error)
FargateWorkloadAppFunc is a function that deploys a Fargate workload app to an ECS cluster
type ProvisionerOption ¶
type ProvisionerOption func(*ProvisionerParams) error
ProvisionerOption is a function that modifies the ProvisionerParams
func WithAgentOptions ¶
func WithAgentOptions(opts ...ecsagentparams.Option) ProvisionerOption
WithAgentOptions sets the options for the Docker Agent
func WithAwsEnv ¶ added in v0.56.0
func WithAwsEnv(env *aws.Environment) ProvisionerOption
WithAwsEnv asks the provisioner to use the given environment, it is created otherwise
func WithECSOptions ¶
func WithECSOptions(opts ...ecs.Option) ProvisionerOption
WithECSOptions sets the options for ECS cluster
func WithExtraConfigParams ¶
func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
WithExtraConfigParams sets the extra config params for the environment
func WithFakeIntakeOptions ¶
func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
WithFakeIntakeOptions sets the options for the FakeIntake
func WithFargateWorkloadApp ¶
func WithFargateWorkloadApp(appFunc FargateWorkloadAppFunc) ProvisionerOption
WithFargateWorkloadApp adds a Fargate workload app to the environment
func WithInfraShouldDeployFakeintakeWithLB ¶
func WithInfraShouldDeployFakeintakeWithLB() ProvisionerOption
WithInfraShouldDeployFakeintakeWithLB enable load balancer on Fakeintake
func WithTestingWorkload ¶
func WithTestingWorkload() ProvisionerOption
WithTestingWorkload deploys testing workloads for nginx, redis, cpustress, dogstatsd, prometheus and tracegen
func WithWorkloadApp ¶ added in v0.56.0
func WithWorkloadApp(appFunc WorkloadAppFunc) ProvisionerOption
WithWorkloadApp adds a workload app to the environment
func WithoutAgent ¶
func WithoutAgent() ProvisionerOption
WithoutAgent deactivates the creation of the Docker Agent
func WithoutFakeIntake ¶
func WithoutFakeIntake() ProvisionerOption
WithoutFakeIntake deactivates the creation of the FakeIntake
type ProvisionerParams ¶
type ProvisionerParams struct {
// contains filtered or unexported fields
}
ProvisionerParams contains all the parameters needed to create the environment
func GetProvisionerParams ¶
func GetProvisionerParams(opts ...ProvisionerOption) *ProvisionerParams
GetProvisionerParams return ProvisionerParams from options opts setup
type WorkloadAppFunc ¶ added in v0.56.0
type WorkloadAppFunc func(e aws.Environment, clusterArn pulumi.StringInput) (*ecsComp.Workload, error)
WorkloadAppFunc is a function that deploys a workload app to an ECS cluster