launchflow.aws.ecs_fargate

ECSFargate

1
class ECSFargate(Service)

A service hosted on AWS ECS Fargate.

Example usage:

1
import launchflow as lf
2
3
service = lf.aws.ECSFargate("my-service")

NOTE: This will create the following infrastructure in your AWS account:

__init__

1
def __init__(name: str,
2
dockerfile: str = "Dockerfile",
3
build_directory: str = ".",
4
build_ignore: List[str] = []) -> None

Creates a new ECS Fargate service.

Args:

  • name: The name of the service.
  • build_directory: The directory to build the service from. This should be a relative path from the project root where your launchflow.yaml is defined.
  • dockerfile: The Dockerfile to use for building the service. This should be a relative path from the build_directory.
  • build_ignore: A list of files to ignore when building the service. This can be in the same syntax you would use for a .gitignore.