TaskDefinition
Manages a revision of an ECS task definition to be used in aws.ecs.Service.
Example Usage
With AppMesh Proxy
using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var service = new Aws.Ecs.TaskDefinition("service", new Aws.Ecs.TaskDefinitionArgs
{
Family = "service",
ContainerDefinitions = File.ReadAllText("task-definitions/service.json"),
ProxyConfiguration = new Aws.Ecs.Inputs.TaskDefinitionProxyConfigurationArgs
{
Type = "APPMESH",
ContainerName = "applicationContainerName",
Properties =
{
{ "AppPorts", "8080" },
{ "EgressIgnoredIPs", "169.254.170.2,169.254.169.254" },
{ "IgnoredUID", "1337" },
{ "ProxyEgressPort", "15001" },
{ "ProxyIngressPort", "15000" },
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_aws as aws
service = aws.ecs.TaskDefinition("service",
family="service",
container_definitions=(lambda path: open(path).read())("task-definitions/service.json"),
proxy_configuration={
"type": "APPMESH",
"container_name": "applicationContainerName",
"properties": {
"AppPorts": "8080",
"EgressIgnoredIPs": "169.254.170.2,169.254.169.254",
"IgnoredUID": "1337",
"ProxyEgressPort": 15001,
"ProxyIngressPort": 15000,
},
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * from "fs";
const service = new aws.ecs.TaskDefinition("service", {
family: "service",
containerDefinitions: fs.readFileSync("task-definitions/service.json"),
proxyConfiguration: {
type: "APPMESH",
containerName: "applicationContainerName",
properties: {
AppPorts: "8080",
EgressIgnoredIPs: "169.254.170.2,169.254.169.254",
IgnoredUID: "1337",
ProxyEgressPort: 15001,
ProxyIngressPort: 15000,
},
},
});Create a TaskDefinition Resource
new TaskDefinition(name: string, args: TaskDefinitionArgs, opts?: CustomResourceOptions);def TaskDefinition(resource_name, opts=None, container_definitions=None, cpu=None, execution_role_arn=None, family=None, inference_accelerators=None, ipc_mode=None, memory=None, network_mode=None, pid_mode=None, placement_constraints=None, proxy_configuration=None, requires_compatibilities=None, tags=None, task_role_arn=None, volumes=None, __props__=None);func NewTaskDefinition(ctx *Context, name string, args TaskDefinitionArgs, opts ...ResourceOption) (*TaskDefinition, error)public TaskDefinition(string name, TaskDefinitionArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TaskDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TaskDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TaskDefinition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TaskDefinition resource accepts the following input properties:
- Container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- Family string
A unique name for your task definition.
- Cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Inference
Accelerators List<TaskDefinition Inference Accelerator Args> Configuration block(s) with Inference Accelerators settings. Detailed below.
- Ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- Memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- Pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- Placement
Constraints List<TaskDefinition Placement Constraint Args> A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- Proxy
Configuration TaskDefinition Proxy Configuration Args The proxy configuration details for the App Mesh proxy.
- Requires
Compatibilities List<string> A set of launch types required by the task. The valid values are
EC2andFARGATE.- Dictionary<string, string>
Key-value map of resource tags
- Task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
List<Task
Definition Volume Args> A set of volume blocks that containers in your task may use.
- Container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- Family string
A unique name for your task definition.
- Cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Inference
Accelerators []TaskDefinition Inference Accelerator Configuration block(s) with Inference Accelerators settings. Detailed below.
- Ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- Memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- Pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- Placement
Constraints []TaskDefinition Placement Constraint A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- Proxy
Configuration TaskDefinition Proxy Configuration The proxy configuration details for the App Mesh proxy.
- Requires
Compatibilities []string A set of launch types required by the task. The valid values are
EC2andFARGATE.- map[string]string
Key-value map of resource tags
- Task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
[]Task
Definition Volume A set of volume blocks that containers in your task may use.
- container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- family string
A unique name for your task definition.
- cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- inference
Accelerators TaskDefinition Inference Accelerator[] Configuration block(s) with Inference Accelerators settings. Detailed below.
- ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- placement
Constraints TaskDefinition Placement Constraint[] A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- proxy
Configuration TaskDefinition Proxy Configuration The proxy configuration details for the App Mesh proxy.
- requires
Compatibilities string[] A set of launch types required by the task. The valid values are
EC2andFARGATE.- {[key: string]: string}
Key-value map of resource tags
- task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Task
Definition Volume[] A set of volume blocks that containers in your task may use.
- container_
definitions str A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- family str
A unique name for your task definition.
- cpu str
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- execution_
role_ strarn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- inference_
accelerators List[TaskDefinition Inference Accelerator] Configuration block(s) with Inference Accelerators settings. Detailed below.
- ipc_
mode str The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- memory str
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- network_
mode str The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- pid_
mode str The process namespace to use for the containers in the task. The valid values are
hostandtask.- placement_
constraints List[TaskDefinition Placement Constraint] A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- proxy_
configuration Dict[TaskDefinition Proxy Configuration] The proxy configuration details for the App Mesh proxy.
- requires_
compatibilities List[str] A set of launch types required by the task. The valid values are
EC2andFARGATE.- Dict[str, str]
Key-value map of resource tags
- task_
role_ strarn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
List[Task
Definition Volume] A set of volume blocks that containers in your task may use.
Outputs
All input properties are implicitly available as output properties. Additionally, the TaskDefinition resource produces the following output properties:
Look up an Existing TaskDefinition Resource
Get an existing TaskDefinition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TaskDefinitionState, opts?: CustomResourceOptions): TaskDefinitionstatic get(resource_name, id, opts=None, arn=None, container_definitions=None, cpu=None, execution_role_arn=None, family=None, inference_accelerators=None, ipc_mode=None, memory=None, network_mode=None, pid_mode=None, placement_constraints=None, proxy_configuration=None, requires_compatibilities=None, revision=None, tags=None, task_role_arn=None, volumes=None, __props__=None);func GetTaskDefinition(ctx *Context, name string, id IDInput, state *TaskDefinitionState, opts ...ResourceOption) (*TaskDefinition, error)public static TaskDefinition Get(string name, Input<string> id, TaskDefinitionState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
Full ARN of the Task Definition (including both
familyandrevision).- Container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- Cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Family string
A unique name for your task definition.
- Inference
Accelerators List<TaskDefinition Inference Accelerator Args> Configuration block(s) with Inference Accelerators settings. Detailed below.
- Ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- Memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- Pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- Placement
Constraints List<TaskDefinition Placement Constraint Args> A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- Proxy
Configuration TaskDefinition Proxy Configuration Args The proxy configuration details for the App Mesh proxy.
- Requires
Compatibilities List<string> A set of launch types required by the task. The valid values are
EC2andFARGATE.- Revision int
The revision of the task in a particular family.
- Dictionary<string, string>
Key-value map of resource tags
- Task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
List<Task
Definition Volume Args> A set of volume blocks that containers in your task may use.
- Arn string
Full ARN of the Task Definition (including both
familyandrevision).- Container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- Cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Family string
A unique name for your task definition.
- Inference
Accelerators []TaskDefinition Inference Accelerator Configuration block(s) with Inference Accelerators settings. Detailed below.
- Ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- Memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- Network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- Pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- Placement
Constraints []TaskDefinition Placement Constraint A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- Proxy
Configuration TaskDefinition Proxy Configuration The proxy configuration details for the App Mesh proxy.
- Requires
Compatibilities []string A set of launch types required by the task. The valid values are
EC2andFARGATE.- Revision int
The revision of the task in a particular family.
- map[string]string
Key-value map of resource tags
- Task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
[]Task
Definition Volume A set of volume blocks that containers in your task may use.
- arn string
Full ARN of the Task Definition (including both
familyandrevision).- container
Definitions string A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- cpu string
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- execution
Role stringArn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family string
A unique name for your task definition.
- inference
Accelerators TaskDefinition Inference Accelerator[] Configuration block(s) with Inference Accelerators settings. Detailed below.
- ipc
Mode string The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- memory string
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- network
Mode string The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- pid
Mode string The process namespace to use for the containers in the task. The valid values are
hostandtask.- placement
Constraints TaskDefinition Placement Constraint[] A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- proxy
Configuration TaskDefinition Proxy Configuration The proxy configuration details for the App Mesh proxy.
- requires
Compatibilities string[] A set of launch types required by the task. The valid values are
EC2andFARGATE.- revision number
The revision of the task in a particular family.
- {[key: string]: string}
Key-value map of resource tags
- task
Role stringArn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Task
Definition Volume[] A set of volume blocks that containers in your task may use.
- arn str
Full ARN of the Task Definition (including both
familyandrevision).- container_
definitions str A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
- cpu str
The number of cpu units used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- execution_
role_ strarn The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family str
A unique name for your task definition.
- inference_
accelerators List[TaskDefinition Inference Accelerator] Configuration block(s) with Inference Accelerators settings. Detailed below.
- ipc_
mode str The IPC resource namespace to be used for the containers in the task The valid values are
host,task, andnone.- memory str
The amount (in MiB) of memory used by the task. If the
requires_compatibilitiesisFARGATEthis field is required.- network_
mode str The Docker networking mode to use for the containers in the task. The valid values are
none,bridge,awsvpc, andhost.- pid_
mode str The process namespace to use for the containers in the task. The valid values are
hostandtask.- placement_
constraints List[TaskDefinition Placement Constraint] A set of placement constraints rules that are taken into consideration during task placement. Maximum number of
placement_constraintsis10.- proxy_
configuration Dict[TaskDefinition Proxy Configuration] The proxy configuration details for the App Mesh proxy.
- requires_
compatibilities List[str] A set of launch types required by the task. The valid values are
EC2andFARGATE.- revision float
The revision of the task in a particular family.
- Dict[str, str]
Key-value map of resource tags
- task_
role_ strarn The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
List[Task
Definition Volume] A set of volume blocks that containers in your task may use.
Supporting Types
TaskDefinitionInferenceAccelerator
- Device
Name string The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
- Device
Type string The Elastic Inference accelerator type to use.
- Device
Name string The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
- Device
Type string The Elastic Inference accelerator type to use.
- device
Name string The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
- device
Type string The Elastic Inference accelerator type to use.
- device
Type str The Elastic Inference accelerator type to use.
- device_
name str The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
TaskDefinitionPlacementConstraint
- Type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.- Expression string
Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
- Type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.- Expression string
Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
- type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.- expression string
Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
- type str
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.- expression str
Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
TaskDefinitionProxyConfiguration
- Container
Name string The name of the container that will serve as the App Mesh proxy.
- Properties Dictionary<string, string>
The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
- Type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.
- Container
Name string The name of the container that will serve as the App Mesh proxy.
- Properties map[string]string
The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
- Type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.
- container
Name string The name of the container that will serve as the App Mesh proxy.
- properties {[key: string]: string}
The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
- type string
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.
- container_
name str The name of the container that will serve as the App Mesh proxy.
- properties Dict[str, str]
The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
- type str
The proxy type. The default value is
APPMESH. The only supported value isAPPMESH.
TaskDefinitionVolume
- Name string
The name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection.- Docker
Volume TaskConfiguration Definition Volume Docker Volume Configuration Args Used to configure a docker volume
- Efs
Volume TaskConfiguration Definition Volume Efs Volume Configuration Args Used to configure a EFS volume.
- Host
Path string The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
- Name string
The name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection.- Docker
Volume TaskConfiguration Definition Volume Docker Volume Configuration Used to configure a docker volume
- Efs
Volume TaskConfiguration Definition Volume Efs Volume Configuration Used to configure a EFS volume.
- Host
Path string The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
- name string
The name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection.- docker
Volume TaskConfiguration Definition Volume Docker Volume Configuration Used to configure a docker volume
- efs
Volume TaskConfiguration Definition Volume Efs Volume Configuration Used to configure a EFS volume.
- host
Path string The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
- name str
The name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection.- docker
Volume Dict[TaskConfiguration Definition Volume Docker Volume Configuration] Used to configure a docker volume
- efs
Volume Dict[TaskConfiguration Definition Volume Efs Volume Configuration] Used to configure a EFS volume.
- host
Path str The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
TaskDefinitionVolumeDockerVolumeConfiguration
- Autoprovision bool
If this value is
true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope isshared.- Driver string
The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
- Driver
Opts Dictionary<string, string> A map of Docker driver specific options.
- Labels Dictionary<string, string>
A map of custom metadata to add to your Docker volume.
- Scope string
The scope for the Docker volume, which determines its lifecycle, either
taskorshared. Docker volumes that are scoped to ataskare automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that arescopedas shared persist after the task stops.
- Autoprovision bool
If this value is
true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope isshared.- Driver string
The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
- Driver
Opts map[string]string A map of Docker driver specific options.
- Labels map[string]string
A map of custom metadata to add to your Docker volume.
- Scope string
The scope for the Docker volume, which determines its lifecycle, either
taskorshared. Docker volumes that are scoped to ataskare automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that arescopedas shared persist after the task stops.
- autoprovision boolean
If this value is
true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope isshared.- driver string
The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
- driver
Opts {[key: string]: string} A map of Docker driver specific options.
- labels {[key: string]: string}
A map of custom metadata to add to your Docker volume.
- scope string
The scope for the Docker volume, which determines its lifecycle, either
taskorshared. Docker volumes that are scoped to ataskare automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that arescopedas shared persist after the task stops.
- autoprovision bool
If this value is
true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope isshared.- driver str
The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
- driver
Opts Dict[str, str] A map of Docker driver specific options.
- labels Dict[str, str]
A map of custom metadata to add to your Docker volume.
- scope str
The scope for the Docker volume, which determines its lifecycle, either
taskorshared. Docker volumes that are scoped to ataskare automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that arescopedas shared persist after the task stops.
TaskDefinitionVolumeEfsVolumeConfiguration
- File
System stringId The ID of the EFS File System.
-
Task
Definition Volume Efs Volume Configuration Authorization Config Args The authorization configuration details for the Amazon EFS file system.
- Root
Directory string The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using
authorization_config.- Transit
Encryption string Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.- Transit
Encryption intPort The port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses.
- File
System stringId The ID of the EFS File System.
-
Task
Definition Volume Efs Volume Configuration Authorization Config The authorization configuration details for the Amazon EFS file system.
- Root
Directory string The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using
authorization_config.- Transit
Encryption string Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.- Transit
Encryption intPort The port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses.
- file
System stringId The ID of the EFS File System.
-
Task
Definition Volume Efs Volume Configuration Authorization Config The authorization configuration details for the Amazon EFS file system.
- root
Directory string The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using
authorization_config.- transit
Encryption string Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.- transit
Encryption numberPort The port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses.
- file_
system_ strid The ID of the EFS File System.
-
Dict[Task
Definition Volume Efs Volume Configuration Authorization Config] The authorization configuration details for the Amazon EFS file system.
- root_
directory str The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using
authorization_config.- transit
Encryption str Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.- transit
Encryption floatPort The port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses.
TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig
- Access
Point stringId The access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration.
- Iam string
Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.
- Access
Point stringId The access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration.
- Iam string
Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.
- access
Point stringId The access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration.
- iam string
Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.
- access
Point strId The access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration.
- iam str
Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values:
ENABLED,DISABLED. If this parameter is omitted, the default value ofDISABLEDis used.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.