Examples of using Task definition in English and their translations into Spanish
{-}
-
Colloquial
-
Official
Paste the sample task definition JSON below into the text area(replacing the pre-populated JSON there) and choose Save.
Replace hello-world with the container name in your service's task definition that references your Docker image.
Some task definition parameters require a specific Docker remote API version to be installed on the container instance.
When you register a task definition with Windows containers,
If you use the AWS Management Console to register a task definition with Windows containers,
see Task Definition Parameters in the Amazon Elastic Container Service Developer Guide.
The sample task definition later in this walk through uses port 8080, so you should open that to Anywhere.
If your service's task definition uses the awsvpc network mode, you must configure a VPC,
If your service's task definition uses the awsvpc network mode,
This allows you to run a task while changing a task definition without the need to create a new task definition revision.
You can optionally rename the task definition and edit the resources used by the task by choosing Edit and editing the values shown.
The following is an example task definition using the Fargate launch type that sets up a web server.
see Task Definition Parameters and Creating a Task Definition. .
You can generate this task definition template using the following AWS CLI command.
In the task definition volumes section, define a data volume
The volumesFrom parameter applies to volumes defined in the task definition, and those that are built into the image with a Dockerfile.
In the task definition volumes section, define a data volume with name and DockerVolumeConfiguration values.
If your service's task definition uses the awsvpc network mode,
An awsvpcConfiguration is required because the example task definition uses the awsvpc network mode.
Which is triggered by updating the task definition or desired count of a service.