get Task Definition
Registers a new task definition from the supplied `family`
and `containerDefinitions`
. Optionally, you can add data volumes to your containers with the `volumes`
parameter. For more information about task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon Elastic Container Service Developer Guide. You can specify a role for your task with the `taskRoleArn`
parameter. When you specify a role for a task, its containers can then use the latest versions of the CLI or SDKs to make API requests to the AWS services that are specified in the policy that's associated with the role. For more information, see IAM Roles for Tasks in the Amazon Elastic Container Service Developer Guide. You can specify a Docker networking mode for the containers in your task definition with the `networkMode`
parameter. If you specify the `awsvpc`
network mode, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide. In the following example or examples, the Authorization header contents (`AUTHPARAMS`
) must be replaced with an AWS Signature Version 4 signature. For more information, see Signature Version 4 Signing Process in the General Reference. You only need to learn how to sign HTTP requests if you intend to create them manually. When you use the or one of the SDKs to make requests to AWS, these tools automatically sign the requests for you, with the access key that you specify when you configure the tools. When you use these tools, you don't have to sign requests yourself.
Return
null
Parameters
null
Return
null
Parameters
The ARN of the task definition.
See also
Return
null
Parameters
Builder for com.pulumi.awsnative.ecs.kotlin.inputs.GetTaskDefinitionPlainArgs.