ECSFargateServiceContainer
A container for a service running on ECS Fargate.
Example Usage
1import launchflow as lf
2
3service_container = lf.aws.ECSFargateServiceContainer("my-service-container")
initialization
Creates a new ECS Fargate service container.
Args:
name (str)
: The name of the ECS Fargate service container.ecs_cluster (Union[ECSCluster, str])
: The ECS cluster or the name of the ECS cluster.port (int)
: The port the container listens on. Defaults to 80.desired_count (int)
: The number of tasks to run. Defaults to 1.
Raises:
ValueError
: Ifecs_cluster
is not an instance ofECSCluster
orstr
.