make_fargate_task#
- make_fargate_task(name: str, image: str, region: str, user: str, vcpus: int, memory: int, task_role_arn: str, execution_role_arn: str) dict [source]#
Create Fargate task definition.
Docker images on the Docker Hub registry are available by default, and can be specified using
image:tag
. Otherwise, userepository/image:tag
.- Parameters:
name – Task definition name.
image – Docker image.
region – Logging region.
user – User name prefix for task name.
vcpus – Hard limit of CPU units to present to the task.
memory – Hard limit of memory to present to the task.
task_role_arn – ARN for IAM role for the task container.
execution_role_arn (str) – ARN for IAM role for the container agent.
- Returns:
Task definition.