ecs

package
v0.53.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package ecs contains the definition of the AWS ECS environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provisioner

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 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 WithECSFargateCapacityProvider

func WithECSFargateCapacityProvider() ProvisionerOption

WithECSFargateCapacityProvider enable Fargate ECS

func WithECSLinuxBottlerocketNodeGroup

func WithECSLinuxBottlerocketNodeGroup() ProvisionerOption

WithECSLinuxBottlerocketNodeGroup enable aws/ecs/linuxBottlerocketNodeGroup

func WithECSLinuxECSOptimizedARMNodeGroup

func WithECSLinuxECSOptimizedARMNodeGroup() ProvisionerOption

WithECSLinuxECSOptimizedARMNodeGroup enable aws/ecs/linuxECSOptimizedARMNodeGroup

func WithECSLinuxECSOptimizedNodeGroup

func WithECSLinuxECSOptimizedNodeGroup() ProvisionerOption

WithECSLinuxECSOptimizedNodeGroup enable aws/ecs/linuxECSOptimizedNodeGroup

func WithECSWindowsNodeGroup

func WithECSWindowsNodeGroup() ProvisionerOption

WithECSWindowsNodeGroup enable aws/ecs/windowsLTSCNodeGroup

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 WithInfraShouldDeployFakeintakeWithLB

func WithInfraShouldDeployFakeintakeWithLB() ProvisionerOption

WithInfraShouldDeployFakeintakeWithLB enable load balancer on Fakeintake

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

Jump to

Keyboard shortcuts

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