published on Monday, Jun 15, 2026 by Pulumi
published on Monday, Jun 15, 2026 by Pulumi
Manages a revision of an ECS daemon task definition for use with daemon scheduling strategy.
Example Usage
Basic Example
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ecs.DaemonTaskDefinition("example", {
family: "my-daemon-service",
cpu: "512",
memory: "1024",
containerDefinitions: [{
name: "app",
image: "nginx:latest",
cpu: 256,
memory: 512,
essential: true,
}],
});
import pulumi
import pulumi_aws as aws
example = aws.ecs.DaemonTaskDefinition("example",
family="my-daemon-service",
cpu="512",
memory="1024",
container_definitions=[{
"name": "app",
"image": "nginx:latest",
"cpu": 256,
"memory": 512,
"essential": True,
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewDaemonTaskDefinition(ctx, "example", &ecs.DaemonTaskDefinitionArgs{
Family: pulumi.String("my-daemon-service"),
Cpu: pulumi.String("512"),
Memory: pulumi.String("1024"),
ContainerDefinitions: ecs.DaemonTaskDefinitionContainerDefinitionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Name: pulumi.String("app"),
Image: pulumi.String("nginx:latest"),
Cpu: pulumi.Int(256),
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ecs.DaemonTaskDefinition("example", new()
{
Family = "my-daemon-service",
Cpu = "512",
Memory = "1024",
ContainerDefinitions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Name = "app",
Image = "nginx:latest",
Cpu = 256,
Memory = 512,
Essential = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecs.DaemonTaskDefinition;
import com.pulumi.aws.ecs.DaemonTaskDefinitionArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionContainerDefinitionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DaemonTaskDefinition("example", DaemonTaskDefinitionArgs.builder()
.family("my-daemon-service")
.cpu("512")
.memory("1024")
.containerDefinitions(DaemonTaskDefinitionContainerDefinitionArgs.builder()
.name("app")
.image("nginx:latest")
.cpu(256)
.memory(512)
.essential(true)
.build())
.build());
}
}
resources:
example:
type: aws:ecs:DaemonTaskDefinition
properties:
family: my-daemon-service
cpu: '512'
memory: '1024'
containerDefinitions:
- name: app
image: nginx:latest
cpu: 256
memory: 512
essential: true
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ecs_daemontaskdefinition" "example" {
family = "my-daemon-service"
cpu = "512"
memory = "1024"
container_definitions {
name = "app"
image = "nginx:latest"
cpu = 256
memory = 512
essential = true
}
}
With IAM Roles
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const taskExecution = new aws.iam.Role("task_execution", {
name: "daemon-task-execution-role",
assumeRolePolicy: JSON.stringify({
Version: "2012-10-17",
Statement: [{
Action: "sts:AssumeRole",
Effect: "Allow",
Principal: {
Service: "ecs-tasks.amazonaws.com",
},
}],
}),
});
const task = new aws.iam.Role("task", {
name: "daemon-task-role",
assumeRolePolicy: JSON.stringify({
Version: "2012-10-17",
Statement: [{
Action: "sts:AssumeRole",
Effect: "Allow",
Principal: {
Service: "ecs-tasks.amazonaws.com",
},
}],
}),
});
const example = new aws.ecs.DaemonTaskDefinition("example", {
family: "my-daemon-service",
executionRoleArn: taskExecution.arn,
taskRoleArn: task.arn,
cpu: "512",
memory: "1024",
containerDefinitions: [{
name: "app",
image: "nginx:latest",
cpu: 256,
memory: 512,
essential: true,
}],
});
import pulumi
import json
import pulumi_aws as aws
task_execution = aws.iam.Role("task_execution",
name="daemon-task-execution-role",
assume_role_policy=json.dumps({
"Version": "2012-10-17",
"Statement": [{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "ecs-tasks.amazonaws.com",
},
}],
}))
task = aws.iam.Role("task",
name="daemon-task-role",
assume_role_policy=json.dumps({
"Version": "2012-10-17",
"Statement": [{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "ecs-tasks.amazonaws.com",
},
}],
}))
example = aws.ecs.DaemonTaskDefinition("example",
family="my-daemon-service",
execution_role_arn=task_execution.arn,
task_role_arn=task.arn,
cpu="512",
memory="1024",
container_definitions=[{
"name": "app",
"image": "nginx:latest",
"cpu": 256,
"memory": 512,
"essential": True,
}])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ecs"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"Version": "2012-10-17",
"Statement": []map[string]interface{}{
map[string]interface{}{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": map[string]interface{}{
"Service": "ecs-tasks.amazonaws.com",
},
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
taskExecution, err := iam.NewRole(ctx, "task_execution", &iam.RoleArgs{
Name: pulumi.String("daemon-task-execution-role"),
AssumeRolePolicy: pulumi.String(pulumi.String(json0)),
})
if err != nil {
return err
}
tmpJSON1, err := json.Marshal(map[string]interface{}{
"Version": "2012-10-17",
"Statement": []map[string]interface{}{
map[string]interface{}{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": map[string]interface{}{
"Service": "ecs-tasks.amazonaws.com",
},
},
},
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
task, err := iam.NewRole(ctx, "task", &iam.RoleArgs{
Name: pulumi.String("daemon-task-role"),
AssumeRolePolicy: pulumi.String(pulumi.String(json1)),
})
if err != nil {
return err
}
_, err = ecs.NewDaemonTaskDefinition(ctx, "example", &ecs.DaemonTaskDefinitionArgs{
Family: pulumi.String("my-daemon-service"),
ExecutionRoleArn: taskExecution.Arn,
TaskRoleArn: task.Arn,
Cpu: pulumi.String("512"),
Memory: pulumi.String("1024"),
ContainerDefinitions: ecs.DaemonTaskDefinitionContainerDefinitionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Name: pulumi.String("app"),
Image: pulumi.String("nginx:latest"),
Cpu: pulumi.Int(256),
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var taskExecution = new Aws.Iam.Role("task_execution", new()
{
Name = "daemon-task-execution-role",
AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["Version"] = "2012-10-17",
["Statement"] = new[]
{
new Dictionary<string, object?>
{
["Action"] = "sts:AssumeRole",
["Effect"] = "Allow",
["Principal"] = new Dictionary<string, object?>
{
["Service"] = "ecs-tasks.amazonaws.com",
},
},
},
}),
});
var task = new Aws.Iam.Role("task", new()
{
Name = "daemon-task-role",
AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["Version"] = "2012-10-17",
["Statement"] = new[]
{
new Dictionary<string, object?>
{
["Action"] = "sts:AssumeRole",
["Effect"] = "Allow",
["Principal"] = new Dictionary<string, object?>
{
["Service"] = "ecs-tasks.amazonaws.com",
},
},
},
}),
});
var example = new Aws.Ecs.DaemonTaskDefinition("example", new()
{
Family = "my-daemon-service",
ExecutionRoleArn = taskExecution.Arn,
TaskRoleArn = task.Arn,
Cpu = "512",
Memory = "1024",
ContainerDefinitions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Name = "app",
Image = "nginx:latest",
Cpu = 256,
Memory = 512,
Essential = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.ecs.DaemonTaskDefinition;
import com.pulumi.aws.ecs.DaemonTaskDefinitionArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionContainerDefinitionArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var taskExecution = new Role("taskExecution", RoleArgs.builder()
.name("daemon-task-execution-role")
.assumeRolePolicy(serializeJson(
jsonObject(
jsonProperty("Version", "2012-10-17"),
jsonProperty("Statement", jsonArray(jsonObject(
jsonProperty("Action", "sts:AssumeRole"),
jsonProperty("Effect", "Allow"),
jsonProperty("Principal", jsonObject(
jsonProperty("Service", "ecs-tasks.amazonaws.com")
))
)))
)))
.build());
var task = new Role("task", RoleArgs.builder()
.name("daemon-task-role")
.assumeRolePolicy(serializeJson(
jsonObject(
jsonProperty("Version", "2012-10-17"),
jsonProperty("Statement", jsonArray(jsonObject(
jsonProperty("Action", "sts:AssumeRole"),
jsonProperty("Effect", "Allow"),
jsonProperty("Principal", jsonObject(
jsonProperty("Service", "ecs-tasks.amazonaws.com")
))
)))
)))
.build());
var example = new DaemonTaskDefinition("example", DaemonTaskDefinitionArgs.builder()
.family("my-daemon-service")
.executionRoleArn(taskExecution.arn())
.taskRoleArn(task.arn())
.cpu("512")
.memory("1024")
.containerDefinitions(DaemonTaskDefinitionContainerDefinitionArgs.builder()
.name("app")
.image("nginx:latest")
.cpu(256)
.memory(512)
.essential(true)
.build())
.build());
}
}
resources:
taskExecution:
type: aws:iam:Role
name: task_execution
properties:
name: daemon-task-execution-role
assumeRolePolicy:
fn::toJSON:
Version: 2012-10-17
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: ecs-tasks.amazonaws.com
task:
type: aws:iam:Role
properties:
name: daemon-task-role
assumeRolePolicy:
fn::toJSON:
Version: 2012-10-17
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: ecs-tasks.amazonaws.com
example:
type: aws:ecs:DaemonTaskDefinition
properties:
family: my-daemon-service
executionRoleArn: ${taskExecution.arn}
taskRoleArn: ${task.arn}
cpu: '512'
memory: '1024'
containerDefinitions:
- name: app
image: nginx:latest
cpu: 256
memory: 512
essential: true
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_iam_role" "task_execution" {
name = "daemon-task-execution-role"
assume_role_policy = jsonencode({
"Version" = "2012-10-17"
"Statement" = [{
"Action" = "sts:AssumeRole"
"Effect" = "Allow"
"Principal" = {
"Service" = "ecs-tasks.amazonaws.com"
}
}]
})
}
resource "aws_iam_role" "task" {
name = "daemon-task-role"
assume_role_policy = jsonencode({
"Version" = "2012-10-17"
"Statement" = [{
"Action" = "sts:AssumeRole"
"Effect" = "Allow"
"Principal" = {
"Service" = "ecs-tasks.amazonaws.com"
}
}]
})
}
resource "aws_ecs_daemontaskdefinition" "example" {
family = "my-daemon-service"
execution_role_arn = aws_iam_role.task_execution.arn
task_role_arn = aws_iam_role.task.arn
cpu = "512"
memory = "1024"
container_definitions {
name = "app"
image = "nginx:latest"
cpu = 256
memory = 512
essential = true
}
}
With Volumes
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ecs.DaemonTaskDefinition("example", {
family: "my-daemon-service",
cpu: "512",
memory: "1024",
containerDefinitions: [{
name: "app",
image: "nginx:latest",
cpu: 256,
memory: 512,
essential: true,
}],
volumes: [
{
name: "data-volume",
hosts: [{
sourcePath: "/data",
}],
},
{
name: "logs-volume",
hosts: [{
sourcePath: "/var/log",
}],
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.ecs.DaemonTaskDefinition("example",
family="my-daemon-service",
cpu="512",
memory="1024",
container_definitions=[{
"name": "app",
"image": "nginx:latest",
"cpu": 256,
"memory": 512,
"essential": True,
}],
volumes=[
{
"name": "data-volume",
"hosts": [{
"source_path": "/data",
}],
},
{
"name": "logs-volume",
"hosts": [{
"source_path": "/var/log",
}],
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewDaemonTaskDefinition(ctx, "example", &ecs.DaemonTaskDefinitionArgs{
Family: pulumi.String("my-daemon-service"),
Cpu: pulumi.String("512"),
Memory: pulumi.String("1024"),
ContainerDefinitions: ecs.DaemonTaskDefinitionContainerDefinitionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Name: pulumi.String("app"),
Image: pulumi.String("nginx:latest"),
Cpu: pulumi.Int(256),
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
},
Volumes: ecs.DaemonTaskDefinitionVolumeArray{
&ecs.DaemonTaskDefinitionVolumeArgs{
Name: pulumi.String("data-volume"),
Hosts: ecs.DaemonTaskDefinitionVolumeHostArray{
&ecs.DaemonTaskDefinitionVolumeHostArgs{
SourcePath: pulumi.String("/data"),
},
},
},
&ecs.DaemonTaskDefinitionVolumeArgs{
Name: pulumi.String("logs-volume"),
Hosts: ecs.DaemonTaskDefinitionVolumeHostArray{
&ecs.DaemonTaskDefinitionVolumeHostArgs{
SourcePath: pulumi.String("/var/log"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ecs.DaemonTaskDefinition("example", new()
{
Family = "my-daemon-service",
Cpu = "512",
Memory = "1024",
ContainerDefinitions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Name = "app",
Image = "nginx:latest",
Cpu = 256,
Memory = 512,
Essential = true,
},
},
Volumes = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeArgs
{
Name = "data-volume",
Hosts = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeHostArgs
{
SourcePath = "/data",
},
},
},
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeArgs
{
Name = "logs-volume",
Hosts = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeHostArgs
{
SourcePath = "/var/log",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecs.DaemonTaskDefinition;
import com.pulumi.aws.ecs.DaemonTaskDefinitionArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionContainerDefinitionArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionVolumeArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionVolumeHostArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DaemonTaskDefinition("example", DaemonTaskDefinitionArgs.builder()
.family("my-daemon-service")
.cpu("512")
.memory("1024")
.containerDefinitions(DaemonTaskDefinitionContainerDefinitionArgs.builder()
.name("app")
.image("nginx:latest")
.cpu(256)
.memory(512)
.essential(true)
.build())
.volumes(
DaemonTaskDefinitionVolumeArgs.builder()
.name("data-volume")
.hosts(DaemonTaskDefinitionVolumeHostArgs.builder()
.sourcePath("/data")
.build())
.build(),
DaemonTaskDefinitionVolumeArgs.builder()
.name("logs-volume")
.hosts(DaemonTaskDefinitionVolumeHostArgs.builder()
.sourcePath("/var/log")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:ecs:DaemonTaskDefinition
properties:
family: my-daemon-service
cpu: '512'
memory: '1024'
containerDefinitions:
- name: app
image: nginx:latest
cpu: 256
memory: 512
essential: true
volumes:
- name: data-volume
hosts:
- sourcePath: /data
- name: logs-volume
hosts:
- sourcePath: /var/log
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ecs_daemontaskdefinition" "example" {
family = "my-daemon-service"
cpu = "512"
memory = "1024"
container_definitions {
name = "app"
image = "nginx:latest"
cpu = 256
memory = 512
essential = true
}
volumes {
name = "data-volume"
hosts {
source_path = "/data"
}
}
volumes {
name = "logs-volume"
hosts {
source_path = "/var/log"
}
}
}
With Multiple Containers
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ecs.DaemonTaskDefinition("example", {
family: "my-daemon-service",
cpu: "512",
memory: "1024",
containerDefinitions: [
{
name: "app",
image: "my-app:latest",
cpu: 256,
memory: 512,
essential: true,
},
{
name: "sidecar",
image: "datadog/agent:latest",
cpu: 128,
memory: 256,
essential: false,
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.ecs.DaemonTaskDefinition("example",
family="my-daemon-service",
cpu="512",
memory="1024",
container_definitions=[
{
"name": "app",
"image": "my-app:latest",
"cpu": 256,
"memory": 512,
"essential": True,
},
{
"name": "sidecar",
"image": "datadog/agent:latest",
"cpu": 128,
"memory": 256,
"essential": False,
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewDaemonTaskDefinition(ctx, "example", &ecs.DaemonTaskDefinitionArgs{
Family: pulumi.String("my-daemon-service"),
Cpu: pulumi.String("512"),
Memory: pulumi.String("1024"),
ContainerDefinitions: ecs.DaemonTaskDefinitionContainerDefinitionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Name: pulumi.String("app"),
Image: pulumi.String("my-app:latest"),
Cpu: pulumi.Int(256),
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Name: pulumi.String("sidecar"),
Image: pulumi.String("datadog/agent:latest"),
Cpu: pulumi.Int(128),
Memory: pulumi.Int(256),
Essential: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ecs.DaemonTaskDefinition("example", new()
{
Family = "my-daemon-service",
Cpu = "512",
Memory = "1024",
ContainerDefinitions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Name = "app",
Image = "my-app:latest",
Cpu = 256,
Memory = 512,
Essential = true,
},
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Name = "sidecar",
Image = "datadog/agent:latest",
Cpu = 128,
Memory = 256,
Essential = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecs.DaemonTaskDefinition;
import com.pulumi.aws.ecs.DaemonTaskDefinitionArgs;
import com.pulumi.aws.ecs.inputs.DaemonTaskDefinitionContainerDefinitionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DaemonTaskDefinition("example", DaemonTaskDefinitionArgs.builder()
.family("my-daemon-service")
.cpu("512")
.memory("1024")
.containerDefinitions(
DaemonTaskDefinitionContainerDefinitionArgs.builder()
.name("app")
.image("my-app:latest")
.cpu(256)
.memory(512)
.essential(true)
.build(),
DaemonTaskDefinitionContainerDefinitionArgs.builder()
.name("sidecar")
.image("datadog/agent:latest")
.cpu(128)
.memory(256)
.essential(false)
.build())
.build());
}
}
resources:
example:
type: aws:ecs:DaemonTaskDefinition
properties:
family: my-daemon-service
cpu: '512'
memory: '1024'
containerDefinitions:
- name: app
image: my-app:latest
cpu: 256
memory: 512
essential: true
- name: sidecar
image: datadog/agent:latest
cpu: 128
memory: 256
essential: false
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ecs_daemontaskdefinition" "example" {
family = "my-daemon-service"
cpu = "512"
memory = "1024"
container_definitions {
name = "app"
image = "my-app:latest"
cpu = 256
memory = 512
essential = true
}
container_definitions {
name = "sidecar"
image = "datadog/agent:latest"
cpu = 128
memory = 256
essential = false
}
}
Create DaemonTaskDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DaemonTaskDefinition(name: string, args: DaemonTaskDefinitionArgs, opts?: CustomResourceOptions);@overload
def DaemonTaskDefinition(resource_name: str,
args: DaemonTaskDefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DaemonTaskDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_definitions: Optional[Sequence[DaemonTaskDefinitionContainerDefinitionArgs]] = None,
family: Optional[str] = None,
cpu: Optional[str] = None,
execution_role_arn: Optional[str] = None,
memory: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
task_role_arn: Optional[str] = None,
volumes: Optional[Sequence[DaemonTaskDefinitionVolumeArgs]] = None)func NewDaemonTaskDefinition(ctx *Context, name string, args DaemonTaskDefinitionArgs, opts ...ResourceOption) (*DaemonTaskDefinition, error)public DaemonTaskDefinition(string name, DaemonTaskDefinitionArgs args, CustomResourceOptions? opts = null)
public DaemonTaskDefinition(String name, DaemonTaskDefinitionArgs args)
public DaemonTaskDefinition(String name, DaemonTaskDefinitionArgs args, CustomResourceOptions options)
type: aws:ecs:DaemonTaskDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_ecs_daemontaskdefinition" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DaemonTaskDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DaemonTaskDefinitionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DaemonTaskDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DaemonTaskDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DaemonTaskDefinitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var daemonTaskDefinitionResource = new Aws.Ecs.DaemonTaskDefinition("daemonTaskDefinitionResource", new()
{
ContainerDefinitions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionArgs
{
Image = "string",
MemoryReservation = 0,
StopTimeout = 0,
EntryPoints = new[]
{
"string",
},
EnvironmentFiles = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionEnvironmentFileArgs
{
Type = "string",
Value = "string",
},
},
MountPoints = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionMountPointArgs
{
ContainerPath = "string",
ReadOnly = false,
SourceVolume = "string",
},
},
Essential = false,
FirelensConfiguration = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionFirelensConfigurationArgs
{
Type = "string",
Options =
{
{ "string", "string" },
},
},
HealthCheck = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionHealthCheckArgs
{
Commands = new[]
{
"string",
},
Interval = 0,
Retries = 0,
StartPeriod = 0,
Timeout = 0,
},
Cpu = 0,
Interactive = false,
LinuxParameters = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLinuxParametersArgs
{
Capabilities = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLinuxParametersCapabilitiesArgs
{
Adds = new[]
{
"string",
},
Drops = new[]
{
"string",
},
},
Devices = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLinuxParametersDeviceArgs
{
HostPath = "string",
ContainerPath = "string",
Permissions = new[]
{
"string",
},
},
},
InitProcessEnabled = false,
Tmpfs = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpfArgs
{
ContainerPath = "string",
Size = 0,
MountOptions = new[]
{
"string",
},
},
},
},
LogConfiguration = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLogConfigurationArgs
{
LogDriver = "string",
Options =
{
{ "string", "string" },
},
SecretOptions = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOptionArgs
{
Name = "string",
ValueFrom = "string",
},
},
},
DependsOns = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionDependsOnArgs
{
Condition = "string",
ContainerName = "string",
},
},
Memory = 0,
Environments = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionEnvironmentArgs
{
Name = "string",
Value = "string",
},
},
Name = "string",
Privileged = false,
PseudoTerminal = false,
ReadonlyRootFilesystem = false,
RepositoryCredentials = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionRepositoryCredentialsArgs
{
CredentialsParameter = "string",
},
RestartPolicy = new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionRestartPolicyArgs
{
Enabled = false,
IgnoredExitCodes = new[]
{
0,
},
RestartAttemptPeriod = 0,
},
Secrets = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionSecretArgs
{
Name = "string",
ValueFrom = "string",
},
},
StartTimeout = 0,
Commands = new[]
{
"string",
},
SystemControls = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionSystemControlArgs
{
Namespace = "string",
Value = "string",
},
},
Ulimits = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionContainerDefinitionUlimitArgs
{
HardLimit = 0,
Name = "string",
SoftLimit = 0,
},
},
User = "string",
WorkingDirectory = "string",
},
},
Family = "string",
Cpu = "string",
ExecutionRoleArn = "string",
Memory = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
TaskRoleArn = "string",
Volumes = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeArgs
{
Name = "string",
Hosts = new[]
{
new Aws.Ecs.Inputs.DaemonTaskDefinitionVolumeHostArgs
{
SourcePath = "string",
},
},
},
},
});
example, err := ecs.NewDaemonTaskDefinition(ctx, "daemonTaskDefinitionResource", &ecs.DaemonTaskDefinitionArgs{
ContainerDefinitions: ecs.DaemonTaskDefinitionContainerDefinitionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionArgs{
Image: pulumi.String("string"),
MemoryReservation: pulumi.Int(0),
StopTimeout: pulumi.Int(0),
EntryPoints: pulumi.StringArray{
pulumi.String("string"),
},
EnvironmentFiles: ecs.DaemonTaskDefinitionContainerDefinitionEnvironmentFileArray{
&ecs.DaemonTaskDefinitionContainerDefinitionEnvironmentFileArgs{
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MountPoints: ecs.DaemonTaskDefinitionContainerDefinitionMountPointArray{
&ecs.DaemonTaskDefinitionContainerDefinitionMountPointArgs{
ContainerPath: pulumi.String("string"),
ReadOnly: pulumi.Bool(false),
SourceVolume: pulumi.String("string"),
},
},
Essential: pulumi.Bool(false),
FirelensConfiguration: &ecs.DaemonTaskDefinitionContainerDefinitionFirelensConfigurationArgs{
Type: pulumi.String("string"),
Options: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
HealthCheck: &ecs.DaemonTaskDefinitionContainerDefinitionHealthCheckArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Interval: pulumi.Int(0),
Retries: pulumi.Int(0),
StartPeriod: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Cpu: pulumi.Int(0),
Interactive: pulumi.Bool(false),
LinuxParameters: &ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersArgs{
Capabilities: &ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersCapabilitiesArgs{
Adds: pulumi.StringArray{
pulumi.String("string"),
},
Drops: pulumi.StringArray{
pulumi.String("string"),
},
},
Devices: ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersDeviceArray{
&ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersDeviceArgs{
HostPath: pulumi.String("string"),
ContainerPath: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
},
},
InitProcessEnabled: pulumi.Bool(false),
Tmpfs: ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpfArray{
&ecs.DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpfArgs{
ContainerPath: pulumi.String("string"),
Size: pulumi.Int(0),
MountOptions: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
LogConfiguration: &ecs.DaemonTaskDefinitionContainerDefinitionLogConfigurationArgs{
LogDriver: pulumi.String("string"),
Options: pulumi.StringMap{
"string": pulumi.String("string"),
},
SecretOptions: ecs.DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOptionArray{
&ecs.DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOptionArgs{
Name: pulumi.String("string"),
ValueFrom: pulumi.String("string"),
},
},
},
DependsOns: ecs.DaemonTaskDefinitionContainerDefinitionDependsOnArray{
&ecs.DaemonTaskDefinitionContainerDefinitionDependsOnArgs{
Condition: pulumi.String("string"),
ContainerName: pulumi.String("string"),
},
},
Memory: pulumi.Int(0),
Environments: ecs.DaemonTaskDefinitionContainerDefinitionEnvironmentArray{
&ecs.DaemonTaskDefinitionContainerDefinitionEnvironmentArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Privileged: pulumi.Bool(false),
PseudoTerminal: pulumi.Bool(false),
ReadonlyRootFilesystem: pulumi.Bool(false),
RepositoryCredentials: &ecs.DaemonTaskDefinitionContainerDefinitionRepositoryCredentialsArgs{
CredentialsParameter: pulumi.String("string"),
},
RestartPolicy: &ecs.DaemonTaskDefinitionContainerDefinitionRestartPolicyArgs{
Enabled: pulumi.Bool(false),
IgnoredExitCodes: pulumi.IntArray{
pulumi.Int(0),
},
RestartAttemptPeriod: pulumi.Int(0),
},
Secrets: ecs.DaemonTaskDefinitionContainerDefinitionSecretArray{
&ecs.DaemonTaskDefinitionContainerDefinitionSecretArgs{
Name: pulumi.String("string"),
ValueFrom: pulumi.String("string"),
},
},
StartTimeout: pulumi.Int(0),
Commands: pulumi.StringArray{
pulumi.String("string"),
},
SystemControls: ecs.DaemonTaskDefinitionContainerDefinitionSystemControlArray{
&ecs.DaemonTaskDefinitionContainerDefinitionSystemControlArgs{
Namespace: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Ulimits: ecs.DaemonTaskDefinitionContainerDefinitionUlimitArray{
&ecs.DaemonTaskDefinitionContainerDefinitionUlimitArgs{
HardLimit: pulumi.Int(0),
Name: pulumi.String("string"),
SoftLimit: pulumi.Int(0),
},
},
User: pulumi.String("string"),
WorkingDirectory: pulumi.String("string"),
},
},
Family: pulumi.String("string"),
Cpu: pulumi.String("string"),
ExecutionRoleArn: pulumi.String("string"),
Memory: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TaskRoleArn: pulumi.String("string"),
Volumes: ecs.DaemonTaskDefinitionVolumeArray{
&ecs.DaemonTaskDefinitionVolumeArgs{
Name: pulumi.String("string"),
Hosts: ecs.DaemonTaskDefinitionVolumeHostArray{
&ecs.DaemonTaskDefinitionVolumeHostArgs{
SourcePath: pulumi.String("string"),
},
},
},
},
})
resource "aws_ecs_daemontaskdefinition" "daemonTaskDefinitionResource" {
container_definitions {
image = "string"
memory_reservation = 0
stop_timeout = 0
entry_points = ["string"]
environment_files {
type = "string"
value = "string"
}
mount_points {
container_path = "string"
read_only = false
source_volume = "string"
}
essential = false
firelens_configuration = {
type = "string"
options = {
"string" = "string"
}
}
health_check = {
commands = ["string"]
interval = 0
retries = 0
start_period = 0
timeout = 0
}
cpu = 0
interactive = false
linux_parameters = {
capabilities = {
adds = ["string"]
drops = ["string"]
}
devices = [{
"hostPath" = "string"
"containerPath" = "string"
"permissions" = ["string"]
}]
init_process_enabled = false
tmpfs = [{
"containerPath" = "string"
"size" = 0
"mountOptions" = ["string"]
}]
}
log_configuration = {
log_driver = "string"
options = {
"string" = "string"
}
secret_options = [{
"name" = "string"
"valueFrom" = "string"
}]
}
depends_ons {
condition = "string"
container_name = "string"
}
memory = 0
environments {
name = "string"
value = "string"
}
name = "string"
privileged = false
pseudo_terminal = false
readonly_root_filesystem = false
repository_credentials = {
credentials_parameter = "string"
}
restart_policy = {
enabled = false
ignored_exit_codes = [0]
restart_attempt_period = 0
}
secrets {
name = "string"
value_from = "string"
}
start_timeout = 0
commands = ["string"]
system_controls {
namespace = "string"
value = "string"
}
ulimits {
hard_limit = 0
name = "string"
soft_limit = 0
}
user = "string"
working_directory = "string"
}
family = "string"
cpu = "string"
execution_role_arn = "string"
memory = "string"
region = "string"
tags = {
"string" = "string"
}
task_role_arn = "string"
volumes {
name = "string"
hosts {
source_path = "string"
}
}
}
var daemonTaskDefinitionResource = new DaemonTaskDefinition("daemonTaskDefinitionResource", DaemonTaskDefinitionArgs.builder()
.containerDefinitions(DaemonTaskDefinitionContainerDefinitionArgs.builder()
.image("string")
.memoryReservation(0)
.stopTimeout(0)
.entryPoints("string")
.environmentFiles(DaemonTaskDefinitionContainerDefinitionEnvironmentFileArgs.builder()
.type("string")
.value("string")
.build())
.mountPoints(DaemonTaskDefinitionContainerDefinitionMountPointArgs.builder()
.containerPath("string")
.readOnly(false)
.sourceVolume("string")
.build())
.essential(false)
.firelensConfiguration(DaemonTaskDefinitionContainerDefinitionFirelensConfigurationArgs.builder()
.type("string")
.options(Map.of("string", "string"))
.build())
.healthCheck(DaemonTaskDefinitionContainerDefinitionHealthCheckArgs.builder()
.commands("string")
.interval(0)
.retries(0)
.startPeriod(0)
.timeout(0)
.build())
.cpu(0)
.interactive(false)
.linuxParameters(DaemonTaskDefinitionContainerDefinitionLinuxParametersArgs.builder()
.capabilities(DaemonTaskDefinitionContainerDefinitionLinuxParametersCapabilitiesArgs.builder()
.adds("string")
.drops("string")
.build())
.devices(DaemonTaskDefinitionContainerDefinitionLinuxParametersDeviceArgs.builder()
.hostPath("string")
.containerPath("string")
.permissions("string")
.build())
.initProcessEnabled(false)
.tmpfs(DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpfArgs.builder()
.containerPath("string")
.size(0)
.mountOptions("string")
.build())
.build())
.logConfiguration(DaemonTaskDefinitionContainerDefinitionLogConfigurationArgs.builder()
.logDriver("string")
.options(Map.of("string", "string"))
.secretOptions(DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOptionArgs.builder()
.name("string")
.valueFrom("string")
.build())
.build())
.dependsOns(DaemonTaskDefinitionContainerDefinitionDependsOnArgs.builder()
.condition("string")
.containerName("string")
.build())
.memory(0)
.environments(DaemonTaskDefinitionContainerDefinitionEnvironmentArgs.builder()
.name("string")
.value("string")
.build())
.name("string")
.privileged(false)
.pseudoTerminal(false)
.readonlyRootFilesystem(false)
.repositoryCredentials(DaemonTaskDefinitionContainerDefinitionRepositoryCredentialsArgs.builder()
.credentialsParameter("string")
.build())
.restartPolicy(DaemonTaskDefinitionContainerDefinitionRestartPolicyArgs.builder()
.enabled(false)
.ignoredExitCodes(0)
.restartAttemptPeriod(0)
.build())
.secrets(DaemonTaskDefinitionContainerDefinitionSecretArgs.builder()
.name("string")
.valueFrom("string")
.build())
.startTimeout(0)
.commands("string")
.systemControls(DaemonTaskDefinitionContainerDefinitionSystemControlArgs.builder()
.namespace("string")
.value("string")
.build())
.ulimits(DaemonTaskDefinitionContainerDefinitionUlimitArgs.builder()
.hardLimit(0)
.name("string")
.softLimit(0)
.build())
.user("string")
.workingDirectory("string")
.build())
.family("string")
.cpu("string")
.executionRoleArn("string")
.memory("string")
.region("string")
.tags(Map.of("string", "string"))
.taskRoleArn("string")
.volumes(DaemonTaskDefinitionVolumeArgs.builder()
.name("string")
.hosts(DaemonTaskDefinitionVolumeHostArgs.builder()
.sourcePath("string")
.build())
.build())
.build());
daemon_task_definition_resource = aws.ecs.DaemonTaskDefinition("daemonTaskDefinitionResource",
container_definitions=[{
"image": "string",
"memory_reservation": 0,
"stop_timeout": 0,
"entry_points": ["string"],
"environment_files": [{
"type": "string",
"value": "string",
}],
"mount_points": [{
"container_path": "string",
"read_only": False,
"source_volume": "string",
}],
"essential": False,
"firelens_configuration": {
"type": "string",
"options": {
"string": "string",
},
},
"health_check": {
"commands": ["string"],
"interval": 0,
"retries": 0,
"start_period": 0,
"timeout": 0,
},
"cpu": 0,
"interactive": False,
"linux_parameters": {
"capabilities": {
"adds": ["string"],
"drops": ["string"],
},
"devices": [{
"host_path": "string",
"container_path": "string",
"permissions": ["string"],
}],
"init_process_enabled": False,
"tmpfs": [{
"container_path": "string",
"size": 0,
"mount_options": ["string"],
}],
},
"log_configuration": {
"log_driver": "string",
"options": {
"string": "string",
},
"secret_options": [{
"name": "string",
"value_from": "string",
}],
},
"depends_ons": [{
"condition": "string",
"container_name": "string",
}],
"memory": 0,
"environments": [{
"name": "string",
"value": "string",
}],
"name": "string",
"privileged": False,
"pseudo_terminal": False,
"readonly_root_filesystem": False,
"repository_credentials": {
"credentials_parameter": "string",
},
"restart_policy": {
"enabled": False,
"ignored_exit_codes": [0],
"restart_attempt_period": 0,
},
"secrets": [{
"name": "string",
"value_from": "string",
}],
"start_timeout": 0,
"commands": ["string"],
"system_controls": [{
"namespace": "string",
"value": "string",
}],
"ulimits": [{
"hard_limit": 0,
"name": "string",
"soft_limit": 0,
}],
"user": "string",
"working_directory": "string",
}],
family="string",
cpu="string",
execution_role_arn="string",
memory="string",
region="string",
tags={
"string": "string",
},
task_role_arn="string",
volumes=[{
"name": "string",
"hosts": [{
"source_path": "string",
}],
}])
const daemonTaskDefinitionResource = new aws.ecs.DaemonTaskDefinition("daemonTaskDefinitionResource", {
containerDefinitions: [{
image: "string",
memoryReservation: 0,
stopTimeout: 0,
entryPoints: ["string"],
environmentFiles: [{
type: "string",
value: "string",
}],
mountPoints: [{
containerPath: "string",
readOnly: false,
sourceVolume: "string",
}],
essential: false,
firelensConfiguration: {
type: "string",
options: {
string: "string",
},
},
healthCheck: {
commands: ["string"],
interval: 0,
retries: 0,
startPeriod: 0,
timeout: 0,
},
cpu: 0,
interactive: false,
linuxParameters: {
capabilities: {
adds: ["string"],
drops: ["string"],
},
devices: [{
hostPath: "string",
containerPath: "string",
permissions: ["string"],
}],
initProcessEnabled: false,
tmpfs: [{
containerPath: "string",
size: 0,
mountOptions: ["string"],
}],
},
logConfiguration: {
logDriver: "string",
options: {
string: "string",
},
secretOptions: [{
name: "string",
valueFrom: "string",
}],
},
dependsOns: [{
condition: "string",
containerName: "string",
}],
memory: 0,
environments: [{
name: "string",
value: "string",
}],
name: "string",
privileged: false,
pseudoTerminal: false,
readonlyRootFilesystem: false,
repositoryCredentials: {
credentialsParameter: "string",
},
restartPolicy: {
enabled: false,
ignoredExitCodes: [0],
restartAttemptPeriod: 0,
},
secrets: [{
name: "string",
valueFrom: "string",
}],
startTimeout: 0,
commands: ["string"],
systemControls: [{
namespace: "string",
value: "string",
}],
ulimits: [{
hardLimit: 0,
name: "string",
softLimit: 0,
}],
user: "string",
workingDirectory: "string",
}],
family: "string",
cpu: "string",
executionRoleArn: "string",
memory: "string",
region: "string",
tags: {
string: "string",
},
taskRoleArn: "string",
volumes: [{
name: "string",
hosts: [{
sourcePath: "string",
}],
}],
});
type: aws:ecs:DaemonTaskDefinition
properties:
containerDefinitions:
- commands:
- string
cpu: 0
dependsOns:
- condition: string
containerName: string
entryPoints:
- string
environmentFiles:
- type: string
value: string
environments:
- name: string
value: string
essential: false
firelensConfiguration:
options:
string: string
type: string
healthCheck:
commands:
- string
interval: 0
retries: 0
startPeriod: 0
timeout: 0
image: string
interactive: false
linuxParameters:
capabilities:
adds:
- string
drops:
- string
devices:
- containerPath: string
hostPath: string
permissions:
- string
initProcessEnabled: false
tmpfs:
- containerPath: string
mountOptions:
- string
size: 0
logConfiguration:
logDriver: string
options:
string: string
secretOptions:
- name: string
valueFrom: string
memory: 0
memoryReservation: 0
mountPoints:
- containerPath: string
readOnly: false
sourceVolume: string
name: string
privileged: false
pseudoTerminal: false
readonlyRootFilesystem: false
repositoryCredentials:
credentialsParameter: string
restartPolicy:
enabled: false
ignoredExitCodes:
- 0
restartAttemptPeriod: 0
secrets:
- name: string
valueFrom: string
startTimeout: 0
stopTimeout: 0
systemControls:
- namespace: string
value: string
ulimits:
- hardLimit: 0
name: string
softLimit: 0
user: string
workingDirectory: string
cpu: string
executionRoleArn: string
family: string
memory: string
region: string
tags:
string: string
taskRoleArn: string
volumes:
- hosts:
- sourcePath: string
name: string
DaemonTaskDefinition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DaemonTaskDefinition resource accepts the following input properties:
- Container
Definitions List<DaemonTask Definition Container Definition> - One or more container definition blocks. Detailed below.
- Family string
Unique name for your daemon task definition.
The following arguments are optional:
- Cpu string
- Number of CPU units used by the task.
- Execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Memory string
- Amount (in MiB) of memory used by the task.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
List<Daemon
Task Definition Volume> - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- Container
Definitions []DaemonTask Definition Container Definition Args - One or more container definition blocks. Detailed below.
- Family string
Unique name for your daemon task definition.
The following arguments are optional:
- Cpu string
- Number of CPU units used by the task.
- Execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Memory string
- Amount (in MiB) of memory used by the task.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
[]Daemon
Task Definition Volume Args - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- container_
definitions list(object) - One or more container definition blocks. Detailed below.
- family string
Unique name for your daemon task definition.
The following arguments are optional:
- cpu string
- Number of CPU units used by the task.
- execution_
role_ stringarn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- memory string
- Amount (in MiB) of memory used by the task.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(string)
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - task_
role_ stringarn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes list(object)
- Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- container
Definitions List<DaemonTask Definition Container Definition> - One or more container definition blocks. Detailed below.
- family String
Unique name for your daemon task definition.
The following arguments are optional:
- cpu String
- Number of CPU units used by the task.
- execution
Role StringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- memory String
- Amount (in MiB) of memory used by the task.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - task
Role StringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
List<Daemon
Task Definition Volume> - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- container
Definitions DaemonTask Definition Container Definition[] - One or more container definition blocks. Detailed below.
- family string
Unique name for your daemon task definition.
The following arguments are optional:
- cpu string
- Number of CPU units used by the task.
- execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- memory string
- Amount (in MiB) of memory used by the task.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Daemon
Task Definition Volume[] - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- container_
definitions Sequence[DaemonTask Definition Container Definition Args] - One or more container definition blocks. Detailed below.
- family str
Unique name for your daemon task definition.
The following arguments are optional:
- cpu str
- Number of CPU units used by the task.
- execution_
role_ strarn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- memory str
- Amount (in MiB) of memory used by the task.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - task_
role_ strarn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Sequence[Daemon
Task Definition Volume Args] - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- container
Definitions List<Property Map> - One or more container definition blocks. Detailed below.
- family String
Unique name for your daemon task definition.
The following arguments are optional:
- cpu String
- Number of CPU units used by the task.
- execution
Role StringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- memory String
- Amount (in MiB) of memory used by the task.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - task
Role StringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes List<Property Map>
- Repeatable configuration block for volumes that containers in your task may use. Detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the DaemonTaskDefinition resource produces the following output properties:
- Arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - Id string
- The provider-assigned unique ID for this managed resource.
- Revision int
- Revision of the task in a particular family.
- Status string
- Status of the daemon task definition.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - Id string
- The provider-assigned unique ID for this managed resource.
- Revision int
- Revision of the task in a particular family.
- Status string
- Status of the daemon task definition.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - id string
- The provider-assigned unique ID for this managed resource.
- revision number
- Revision of the task in a particular family.
- status string
- Status of the daemon task definition.
- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - id String
- The provider-assigned unique ID for this managed resource.
- revision Integer
- Revision of the task in a particular family.
- status String
- Status of the daemon task definition.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - id string
- The provider-assigned unique ID for this managed resource.
- revision number
- Revision of the task in a particular family.
- status string
- Status of the daemon task definition.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - id str
- The provider-assigned unique ID for this managed resource.
- revision int
- Revision of the task in a particular family.
- status str
- Status of the daemon task definition.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - id String
- The provider-assigned unique ID for this managed resource.
- revision Number
- Revision of the task in a particular family.
- status String
- Status of the daemon task definition.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Look up Existing DaemonTaskDefinition Resource
Get an existing DaemonTaskDefinition 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?: DaemonTaskDefinitionState, opts?: CustomResourceOptions): DaemonTaskDefinition@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
container_definitions: Optional[Sequence[DaemonTaskDefinitionContainerDefinitionArgs]] = None,
cpu: Optional[str] = None,
execution_role_arn: Optional[str] = None,
family: Optional[str] = None,
memory: Optional[str] = None,
region: Optional[str] = None,
revision: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
task_role_arn: Optional[str] = None,
volumes: Optional[Sequence[DaemonTaskDefinitionVolumeArgs]] = None) -> DaemonTaskDefinitionfunc GetDaemonTaskDefinition(ctx *Context, name string, id IDInput, state *DaemonTaskDefinitionState, opts ...ResourceOption) (*DaemonTaskDefinition, error)public static DaemonTaskDefinition Get(string name, Input<string> id, DaemonTaskDefinitionState? state, CustomResourceOptions? opts = null)public static DaemonTaskDefinition get(String name, Output<String> id, DaemonTaskDefinitionState state, CustomResourceOptions options)resources: _: type: aws:ecs:DaemonTaskDefinition get: id: ${id}import {
to = aws_ecs_daemontaskdefinition.example
id = "${id}"
}
- 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.
- 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.
- Arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - Container
Definitions List<DaemonTask Definition Container Definition> - One or more container definition blocks. Detailed below.
- Cpu string
- Number of CPU units used by the task.
- Execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Family string
Unique name for your daemon task definition.
The following arguments are optional:
- Memory string
- Amount (in MiB) of memory used by the task.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Revision int
- Revision of the task in a particular family.
- Status string
- Status of the daemon task definition.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
List<Daemon
Task Definition Volume> - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- Arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - Container
Definitions []DaemonTask Definition Container Definition Args - One or more container definition blocks. Detailed below.
- Cpu string
- Number of CPU units used by the task.
- Execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- Family string
Unique name for your daemon task definition.
The following arguments are optional:
- Memory string
- Amount (in MiB) of memory used by the task.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Revision int
- Revision of the task in a particular family.
- Status string
- Status of the daemon task definition.
- map[string]string
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- Volumes
[]Daemon
Task Definition Volume Args - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - container_
definitions list(object) - One or more container definition blocks. Detailed below.
- cpu string
- Number of CPU units used by the task.
- execution_
role_ stringarn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family string
Unique name for your daemon task definition.
The following arguments are optional:
- memory string
- Amount (in MiB) of memory used by the task.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision number
- Revision of the task in a particular family.
- status string
- Status of the daemon task definition.
- map(string)
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - task_
role_ stringarn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes list(object)
- Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- arn String
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - container
Definitions List<DaemonTask Definition Container Definition> - One or more container definition blocks. Detailed below.
- cpu String
- Number of CPU units used by the task.
- execution
Role StringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family String
Unique name for your daemon task definition.
The following arguments are optional:
- memory String
- Amount (in MiB) of memory used by the task.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision Integer
- Revision of the task in a particular family.
- status String
- Status of the daemon task definition.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - task
Role StringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
List<Daemon
Task Definition Volume> - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- arn string
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - container
Definitions DaemonTask Definition Container Definition[] - One or more container definition blocks. Detailed below.
- cpu string
- Number of CPU units used by the task.
- execution
Role stringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family string
Unique name for your daemon task definition.
The following arguments are optional:
- memory string
- Amount (in MiB) of memory used by the task.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision number
- Revision of the task in a particular family.
- status string
- Status of the daemon task definition.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - task
Role stringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Daemon
Task Definition Volume[] - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- arn str
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - container_
definitions Sequence[DaemonTask Definition Container Definition Args] - One or more container definition blocks. Detailed below.
- cpu str
- Number of CPU units used by the task.
- execution_
role_ strarn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family str
Unique name for your daemon task definition.
The following arguments are optional:
- memory str
- Amount (in MiB) of memory used by the task.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision int
- Revision of the task in a particular family.
- status str
- Status of the daemon task definition.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - task_
role_ strarn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes
Sequence[Daemon
Task Definition Volume Args] - Repeatable configuration block for volumes that containers in your task may use. Detailed below.
- arn String
- Full ARN of the Daemon Task Definition (including both
familyandrevision). - container
Definitions List<Property Map> - One or more container definition blocks. Detailed below.
- cpu String
- Number of CPU units used by the task.
- execution
Role StringArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
- family String
Unique name for your daemon task definition.
The following arguments are optional:
- memory String
- Amount (in MiB) of memory used by the task.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision Number
- Revision of the task in a particular family.
- status String
- Status of the daemon task definition.
- Map<String>
- Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - task
Role StringArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
- volumes List<Property Map>
- Repeatable configuration block for volumes that containers in your task may use. Detailed below.
Supporting Types
DaemonTaskDefinitionContainerDefinition, DaemonTaskDefinitionContainerDefinitionArgs
- Image string
- Image used to start a container.
- Commands List<string>
- Command that is passed to the container.
- Cpu int
- Number of CPU units reserved for the container.
- Depends
Ons List<DaemonTask Definition Container Definition Depends On> - Dependencies defined for container startup and shutdown. Detailed below.
- Entry
Points List<string> - Entry point that is passed to the container.
- Environment
Files List<DaemonTask Definition Container Definition Environment File> - List of files containing the environment variables to pass to a container. Detailed below.
- Environments
List<Daemon
Task Definition Container Definition Environment> - Environment variables to pass to a container. Detailed below.
- Essential bool
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- Firelens
Configuration DaemonTask Definition Container Definition Firelens Configuration - FireLens configuration for the container. Detailed below.
- Health
Check DaemonTask Definition Container Definition Health Check - Container health check command and associated configuration parameters for the container. Detailed below.
- Interactive bool
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- Linux
Parameters DaemonTask Definition Container Definition Linux Parameters - Linux-specific modifications that are applied to the container. Detailed below.
- Log
Configuration DaemonTask Definition Container Definition Log Configuration - Log configuration specification for the container. Detailed below.
- Memory int
- Amount (in MiB) of memory to present to the container.
- Memory
Reservation int - Soft limit (in MiB) of memory to reserve for the container.
- Mount
Points List<DaemonTask Definition Container Definition Mount Point> - Mount points for data volumes in your container. Detailed below.
- Name string
- Name of a container.
- Privileged bool
- When this parameter is true, the container is given elevated privileges on the host container instance.
- Pseudo
Terminal bool - When this parameter is true, a TTY is allocated.
- Readonly
Root boolFilesystem - When this parameter is true, the container is given read-only access to its root file system.
- Repository
Credentials DaemonTask Definition Container Definition Repository Credentials - Private repository authentication credentials to use. Detailed below.
- Restart
Policy DaemonTask Definition Container Definition Restart Policy - Restart policy for a container. Detailed below.
- Secrets
List<Daemon
Task Definition Container Definition Secret> - Secrets to pass to the container. Detailed below.
- Start
Timeout int - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- Stop
Timeout int - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- System
Controls List<DaemonTask Definition Container Definition System Control> - List of namespaced kernel parameters to set in the container. Detailed below.
- Ulimits
List<Daemon
Task Definition Container Definition Ulimit> - List of ulimits to set in the container. Detailed below.
- User string
- User to use inside the container.
- Working
Directory string - Working directory to run commands inside the container.
- Image string
- Image used to start a container.
- Commands []string
- Command that is passed to the container.
- Cpu int
- Number of CPU units reserved for the container.
- Depends
Ons []DaemonTask Definition Container Definition Depends On - Dependencies defined for container startup and shutdown. Detailed below.
- Entry
Points []string - Entry point that is passed to the container.
- Environment
Files []DaemonTask Definition Container Definition Environment File - List of files containing the environment variables to pass to a container. Detailed below.
- Environments
[]Daemon
Task Definition Container Definition Environment - Environment variables to pass to a container. Detailed below.
- Essential bool
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- Firelens
Configuration DaemonTask Definition Container Definition Firelens Configuration - FireLens configuration for the container. Detailed below.
- Health
Check DaemonTask Definition Container Definition Health Check - Container health check command and associated configuration parameters for the container. Detailed below.
- Interactive bool
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- Linux
Parameters DaemonTask Definition Container Definition Linux Parameters - Linux-specific modifications that are applied to the container. Detailed below.
- Log
Configuration DaemonTask Definition Container Definition Log Configuration - Log configuration specification for the container. Detailed below.
- Memory int
- Amount (in MiB) of memory to present to the container.
- Memory
Reservation int - Soft limit (in MiB) of memory to reserve for the container.
- Mount
Points []DaemonTask Definition Container Definition Mount Point - Mount points for data volumes in your container. Detailed below.
- Name string
- Name of a container.
- Privileged bool
- When this parameter is true, the container is given elevated privileges on the host container instance.
- Pseudo
Terminal bool - When this parameter is true, a TTY is allocated.
- Readonly
Root boolFilesystem - When this parameter is true, the container is given read-only access to its root file system.
- Repository
Credentials DaemonTask Definition Container Definition Repository Credentials - Private repository authentication credentials to use. Detailed below.
- Restart
Policy DaemonTask Definition Container Definition Restart Policy - Restart policy for a container. Detailed below.
- Secrets
[]Daemon
Task Definition Container Definition Secret - Secrets to pass to the container. Detailed below.
- Start
Timeout int - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- Stop
Timeout int - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- System
Controls []DaemonTask Definition Container Definition System Control - List of namespaced kernel parameters to set in the container. Detailed below.
- Ulimits
[]Daemon
Task Definition Container Definition Ulimit - List of ulimits to set in the container. Detailed below.
- User string
- User to use inside the container.
- Working
Directory string - Working directory to run commands inside the container.
- image string
- Image used to start a container.
- commands list(string)
- Command that is passed to the container.
- cpu number
- Number of CPU units reserved for the container.
- depends_
ons list(object) - Dependencies defined for container startup and shutdown. Detailed below.
- entry_
points list(string) - Entry point that is passed to the container.
- environment_
files list(object) - List of files containing the environment variables to pass to a container. Detailed below.
- environments list(object)
- Environment variables to pass to a container. Detailed below.
- essential bool
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- firelens_
configuration object - FireLens configuration for the container. Detailed below.
- health_
check object - Container health check command and associated configuration parameters for the container. Detailed below.
- interactive bool
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- linux_
parameters object - Linux-specific modifications that are applied to the container. Detailed below.
- log_
configuration object - Log configuration specification for the container. Detailed below.
- memory number
- Amount (in MiB) of memory to present to the container.
- memory_
reservation number - Soft limit (in MiB) of memory to reserve for the container.
- mount_
points list(object) - Mount points for data volumes in your container. Detailed below.
- name string
- Name of a container.
- privileged bool
- When this parameter is true, the container is given elevated privileges on the host container instance.
- pseudo_
terminal bool - When this parameter is true, a TTY is allocated.
- readonly_
root_ boolfilesystem - When this parameter is true, the container is given read-only access to its root file system.
- repository_
credentials object - Private repository authentication credentials to use. Detailed below.
- restart_
policy object - Restart policy for a container. Detailed below.
- secrets list(object)
- Secrets to pass to the container. Detailed below.
- start_
timeout number - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- stop_
timeout number - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- system_
controls list(object) - List of namespaced kernel parameters to set in the container. Detailed below.
- ulimits list(object)
- List of ulimits to set in the container. Detailed below.
- user string
- User to use inside the container.
- working_
directory string - Working directory to run commands inside the container.
- image String
- Image used to start a container.
- commands List<String>
- Command that is passed to the container.
- cpu Integer
- Number of CPU units reserved for the container.
- depends
Ons List<DaemonTask Definition Container Definition Depends On> - Dependencies defined for container startup and shutdown. Detailed below.
- entry
Points List<String> - Entry point that is passed to the container.
- environment
Files List<DaemonTask Definition Container Definition Environment File> - List of files containing the environment variables to pass to a container. Detailed below.
- environments
List<Daemon
Task Definition Container Definition Environment> - Environment variables to pass to a container. Detailed below.
- essential Boolean
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- firelens
Configuration DaemonTask Definition Container Definition Firelens Configuration - FireLens configuration for the container. Detailed below.
- health
Check DaemonTask Definition Container Definition Health Check - Container health check command and associated configuration parameters for the container. Detailed below.
- interactive Boolean
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- linux
Parameters DaemonTask Definition Container Definition Linux Parameters - Linux-specific modifications that are applied to the container. Detailed below.
- log
Configuration DaemonTask Definition Container Definition Log Configuration - Log configuration specification for the container. Detailed below.
- memory Integer
- Amount (in MiB) of memory to present to the container.
- memory
Reservation Integer - Soft limit (in MiB) of memory to reserve for the container.
- mount
Points List<DaemonTask Definition Container Definition Mount Point> - Mount points for data volumes in your container. Detailed below.
- name String
- Name of a container.
- privileged Boolean
- When this parameter is true, the container is given elevated privileges on the host container instance.
- pseudo
Terminal Boolean - When this parameter is true, a TTY is allocated.
- readonly
Root BooleanFilesystem - When this parameter is true, the container is given read-only access to its root file system.
- repository
Credentials DaemonTask Definition Container Definition Repository Credentials - Private repository authentication credentials to use. Detailed below.
- restart
Policy DaemonTask Definition Container Definition Restart Policy - Restart policy for a container. Detailed below.
- secrets
List<Daemon
Task Definition Container Definition Secret> - Secrets to pass to the container. Detailed below.
- start
Timeout Integer - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- stop
Timeout Integer - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- system
Controls List<DaemonTask Definition Container Definition System Control> - List of namespaced kernel parameters to set in the container. Detailed below.
- ulimits
List<Daemon
Task Definition Container Definition Ulimit> - List of ulimits to set in the container. Detailed below.
- user String
- User to use inside the container.
- working
Directory String - Working directory to run commands inside the container.
- image string
- Image used to start a container.
- commands string[]
- Command that is passed to the container.
- cpu number
- Number of CPU units reserved for the container.
- depends
Ons DaemonTask Definition Container Definition Depends On[] - Dependencies defined for container startup and shutdown. Detailed below.
- entry
Points string[] - Entry point that is passed to the container.
- environment
Files DaemonTask Definition Container Definition Environment File[] - List of files containing the environment variables to pass to a container. Detailed below.
- environments
Daemon
Task Definition Container Definition Environment[] - Environment variables to pass to a container. Detailed below.
- essential boolean
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- firelens
Configuration DaemonTask Definition Container Definition Firelens Configuration - FireLens configuration for the container. Detailed below.
- health
Check DaemonTask Definition Container Definition Health Check - Container health check command and associated configuration parameters for the container. Detailed below.
- interactive boolean
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- linux
Parameters DaemonTask Definition Container Definition Linux Parameters - Linux-specific modifications that are applied to the container. Detailed below.
- log
Configuration DaemonTask Definition Container Definition Log Configuration - Log configuration specification for the container. Detailed below.
- memory number
- Amount (in MiB) of memory to present to the container.
- memory
Reservation number - Soft limit (in MiB) of memory to reserve for the container.
- mount
Points DaemonTask Definition Container Definition Mount Point[] - Mount points for data volumes in your container. Detailed below.
- name string
- Name of a container.
- privileged boolean
- When this parameter is true, the container is given elevated privileges on the host container instance.
- pseudo
Terminal boolean - When this parameter is true, a TTY is allocated.
- readonly
Root booleanFilesystem - When this parameter is true, the container is given read-only access to its root file system.
- repository
Credentials DaemonTask Definition Container Definition Repository Credentials - Private repository authentication credentials to use. Detailed below.
- restart
Policy DaemonTask Definition Container Definition Restart Policy - Restart policy for a container. Detailed below.
- secrets
Daemon
Task Definition Container Definition Secret[] - Secrets to pass to the container. Detailed below.
- start
Timeout number - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- stop
Timeout number - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- system
Controls DaemonTask Definition Container Definition System Control[] - List of namespaced kernel parameters to set in the container. Detailed below.
- ulimits
Daemon
Task Definition Container Definition Ulimit[] - List of ulimits to set in the container. Detailed below.
- user string
- User to use inside the container.
- working
Directory string - Working directory to run commands inside the container.
- image str
- Image used to start a container.
- commands Sequence[str]
- Command that is passed to the container.
- cpu int
- Number of CPU units reserved for the container.
- depends_
ons Sequence[DaemonTask Definition Container Definition Depends On] - Dependencies defined for container startup and shutdown. Detailed below.
- entry_
points Sequence[str] - Entry point that is passed to the container.
- environment_
files Sequence[DaemonTask Definition Container Definition Environment File] - List of files containing the environment variables to pass to a container. Detailed below.
- environments
Sequence[Daemon
Task Definition Container Definition Environment] - Environment variables to pass to a container. Detailed below.
- essential bool
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- firelens_
configuration DaemonTask Definition Container Definition Firelens Configuration - FireLens configuration for the container. Detailed below.
- health_
check DaemonTask Definition Container Definition Health Check - Container health check command and associated configuration parameters for the container. Detailed below.
- interactive bool
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- linux_
parameters DaemonTask Definition Container Definition Linux Parameters - Linux-specific modifications that are applied to the container. Detailed below.
- log_
configuration DaemonTask Definition Container Definition Log Configuration - Log configuration specification for the container. Detailed below.
- memory int
- Amount (in MiB) of memory to present to the container.
- memory_
reservation int - Soft limit (in MiB) of memory to reserve for the container.
- mount_
points Sequence[DaemonTask Definition Container Definition Mount Point] - Mount points for data volumes in your container. Detailed below.
- name str
- Name of a container.
- privileged bool
- When this parameter is true, the container is given elevated privileges on the host container instance.
- pseudo_
terminal bool - When this parameter is true, a TTY is allocated.
- readonly_
root_ boolfilesystem - When this parameter is true, the container is given read-only access to its root file system.
- repository_
credentials DaemonTask Definition Container Definition Repository Credentials - Private repository authentication credentials to use. Detailed below.
- restart_
policy DaemonTask Definition Container Definition Restart Policy - Restart policy for a container. Detailed below.
- secrets
Sequence[Daemon
Task Definition Container Definition Secret] - Secrets to pass to the container. Detailed below.
- start_
timeout int - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- stop_
timeout int - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- system_
controls Sequence[DaemonTask Definition Container Definition System Control] - List of namespaced kernel parameters to set in the container. Detailed below.
- ulimits
Sequence[Daemon
Task Definition Container Definition Ulimit] - List of ulimits to set in the container. Detailed below.
- user str
- User to use inside the container.
- working_
directory str - Working directory to run commands inside the container.
- image String
- Image used to start a container.
- commands List<String>
- Command that is passed to the container.
- cpu Number
- Number of CPU units reserved for the container.
- depends
Ons List<Property Map> - Dependencies defined for container startup and shutdown. Detailed below.
- entry
Points List<String> - Entry point that is passed to the container.
- environment
Files List<Property Map> - List of files containing the environment variables to pass to a container. Detailed below.
- environments List<Property Map>
- Environment variables to pass to a container. Detailed below.
- essential Boolean
- If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.
- firelens
Configuration Property Map - FireLens configuration for the container. Detailed below.
- health
Check Property Map - Container health check command and associated configuration parameters for the container. Detailed below.
- interactive Boolean
- When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.
- linux
Parameters Property Map - Linux-specific modifications that are applied to the container. Detailed below.
- log
Configuration Property Map - Log configuration specification for the container. Detailed below.
- memory Number
- Amount (in MiB) of memory to present to the container.
- memory
Reservation Number - Soft limit (in MiB) of memory to reserve for the container.
- mount
Points List<Property Map> - Mount points for data volumes in your container. Detailed below.
- name String
- Name of a container.
- privileged Boolean
- When this parameter is true, the container is given elevated privileges on the host container instance.
- pseudo
Terminal Boolean - When this parameter is true, a TTY is allocated.
- readonly
Root BooleanFilesystem - When this parameter is true, the container is given read-only access to its root file system.
- repository
Credentials Property Map - Private repository authentication credentials to use. Detailed below.
- restart
Policy Property Map - Restart policy for a container. Detailed below.
- secrets List<Property Map>
- Secrets to pass to the container. Detailed below.
- start
Timeout Number - Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
- stop
Timeout Number - Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
- system
Controls List<Property Map> - List of namespaced kernel parameters to set in the container. Detailed below.
- ulimits List<Property Map>
- List of ulimits to set in the container. Detailed below.
- user String
- User to use inside the container.
- working
Directory String - Working directory to run commands inside the container.
DaemonTaskDefinitionContainerDefinitionDependsOn, DaemonTaskDefinitionContainerDefinitionDependsOnArgs
- Condition string
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - Container
Name string - Name of a container.
- Condition string
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - Container
Name string - Name of a container.
- condition string
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - container_
name string - Name of a container.
- condition String
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - container
Name String - Name of a container.
- condition string
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - container
Name string - Name of a container.
- condition str
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - container_
name str - Name of a container.
- condition String
- Dependency condition of the container. Valid values:
START,COMPLETE,SUCCESS,HEALTHY. - container
Name String - Name of a container.
DaemonTaskDefinitionContainerDefinitionEnvironment, DaemonTaskDefinitionContainerDefinitionEnvironmentArgs
DaemonTaskDefinitionContainerDefinitionEnvironmentFile, DaemonTaskDefinitionContainerDefinitionEnvironmentFileArgs
DaemonTaskDefinitionContainerDefinitionFirelensConfiguration, DaemonTaskDefinitionContainerDefinitionFirelensConfigurationArgs
DaemonTaskDefinitionContainerDefinitionHealthCheck, DaemonTaskDefinitionContainerDefinitionHealthCheckArgs
- Commands List<string>
- String array representing the command that the container runs to determine if it is healthy.
- Interval int
- Time period in seconds between each health check execution. Valid range: 5–300.
- Retries int
- Number of times to retry a failed health check. Valid range: 1–10.
- Start
Period int - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- Timeout int
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- Commands []string
- String array representing the command that the container runs to determine if it is healthy.
- Interval int
- Time period in seconds between each health check execution. Valid range: 5–300.
- Retries int
- Number of times to retry a failed health check. Valid range: 1–10.
- Start
Period int - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- Timeout int
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- commands list(string)
- String array representing the command that the container runs to determine if it is healthy.
- interval number
- Time period in seconds between each health check execution. Valid range: 5–300.
- retries number
- Number of times to retry a failed health check. Valid range: 1–10.
- start_
period number - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- timeout number
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- commands List<String>
- String array representing the command that the container runs to determine if it is healthy.
- interval Integer
- Time period in seconds between each health check execution. Valid range: 5–300.
- retries Integer
- Number of times to retry a failed health check. Valid range: 1–10.
- start
Period Integer - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- timeout Integer
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- commands string[]
- String array representing the command that the container runs to determine if it is healthy.
- interval number
- Time period in seconds between each health check execution. Valid range: 5–300.
- retries number
- Number of times to retry a failed health check. Valid range: 1–10.
- start
Period number - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- timeout number
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- commands Sequence[str]
- String array representing the command that the container runs to determine if it is healthy.
- interval int
- Time period in seconds between each health check execution. Valid range: 5–300.
- retries int
- Number of times to retry a failed health check. Valid range: 1–10.
- start_
period int - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- timeout int
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
- commands List<String>
- String array representing the command that the container runs to determine if it is healthy.
- interval Number
- Time period in seconds between each health check execution. Valid range: 5–300.
- retries Number
- Number of times to retry a failed health check. Valid range: 1–10.
- start
Period Number - Grace period in seconds to provide containers time to bootstrap. Valid range: 0–300.
- timeout Number
- Time period in seconds to wait for a health check to succeed. Valid range: 2–60.
DaemonTaskDefinitionContainerDefinitionLinuxParameters, DaemonTaskDefinitionContainerDefinitionLinuxParametersArgs
- Capabilities
Daemon
Task Definition Container Definition Linux Parameters Capabilities - Linux capabilities for the container. Detailed below.
- Devices
List<Daemon
Task Definition Container Definition Linux Parameters Device> - Any host devices to expose to the container. Detailed below.
- Init
Process boolEnabled - Run an init process inside the container that forwards signals and reaps processes.
- Tmpfs
List<Daemon
Task Definition Container Definition Linux Parameters Tmpf> - Container path, mount options, and size of the tmpfs mount. Detailed below.
- Capabilities
Daemon
Task Definition Container Definition Linux Parameters Capabilities - Linux capabilities for the container. Detailed below.
- Devices
[]Daemon
Task Definition Container Definition Linux Parameters Device - Any host devices to expose to the container. Detailed below.
- Init
Process boolEnabled - Run an init process inside the container that forwards signals and reaps processes.
- Tmpfs
[]Daemon
Task Definition Container Definition Linux Parameters Tmpf - Container path, mount options, and size of the tmpfs mount. Detailed below.
- capabilities object
- Linux capabilities for the container. Detailed below.
- devices list(object)
- Any host devices to expose to the container. Detailed below.
- init_
process_ boolenabled - Run an init process inside the container that forwards signals and reaps processes.
- tmpfs list(object)
- Container path, mount options, and size of the tmpfs mount. Detailed below.
- capabilities
Daemon
Task Definition Container Definition Linux Parameters Capabilities - Linux capabilities for the container. Detailed below.
- devices
List<Daemon
Task Definition Container Definition Linux Parameters Device> - Any host devices to expose to the container. Detailed below.
- init
Process BooleanEnabled - Run an init process inside the container that forwards signals and reaps processes.
- tmpfs
List<Daemon
Task Definition Container Definition Linux Parameters Tmpf> - Container path, mount options, and size of the tmpfs mount. Detailed below.
- capabilities
Daemon
Task Definition Container Definition Linux Parameters Capabilities - Linux capabilities for the container. Detailed below.
- devices
Daemon
Task Definition Container Definition Linux Parameters Device[] - Any host devices to expose to the container. Detailed below.
- init
Process booleanEnabled - Run an init process inside the container that forwards signals and reaps processes.
- tmpfs
Daemon
Task Definition Container Definition Linux Parameters Tmpf[] - Container path, mount options, and size of the tmpfs mount. Detailed below.
- capabilities
Daemon
Task Definition Container Definition Linux Parameters Capabilities - Linux capabilities for the container. Detailed below.
- devices
Sequence[Daemon
Task Definition Container Definition Linux Parameters Device] - Any host devices to expose to the container. Detailed below.
- init_
process_ boolenabled - Run an init process inside the container that forwards signals and reaps processes.
- tmpfs
Sequence[Daemon
Task Definition Container Definition Linux Parameters Tmpf] - Container path, mount options, and size of the tmpfs mount. Detailed below.
- capabilities Property Map
- Linux capabilities for the container. Detailed below.
- devices List<Property Map>
- Any host devices to expose to the container. Detailed below.
- init
Process BooleanEnabled - Run an init process inside the container that forwards signals and reaps processes.
- tmpfs List<Property Map>
- Container path, mount options, and size of the tmpfs mount. Detailed below.
DaemonTaskDefinitionContainerDefinitionLinuxParametersCapabilities, DaemonTaskDefinitionContainerDefinitionLinuxParametersCapabilitiesArgs
DaemonTaskDefinitionContainerDefinitionLinuxParametersDevice, DaemonTaskDefinitionContainerDefinitionLinuxParametersDeviceArgs
- Host
Path string - Path for the device on the host container instance.
- Container
Path string - Path inside the container at which to expose the host device.
- Permissions List<string>
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- Host
Path string - Path for the device on the host container instance.
- Container
Path string - Path inside the container at which to expose the host device.
- Permissions []string
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- host_
path string - Path for the device on the host container instance.
- container_
path string - Path inside the container at which to expose the host device.
- permissions list(string)
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- host
Path String - Path for the device on the host container instance.
- container
Path String - Path inside the container at which to expose the host device.
- permissions List<String>
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- host
Path string - Path for the device on the host container instance.
- container
Path string - Path inside the container at which to expose the host device.
- permissions string[]
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- host_
path str - Path for the device on the host container instance.
- container_
path str - Path inside the container at which to expose the host device.
- permissions Sequence[str]
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
- host
Path String - Path for the device on the host container instance.
- container
Path String - Path inside the container at which to expose the host device.
- permissions List<String>
- Explicit permissions to provide to the container for the device. Valid values:
read,write,mknod.
DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpf, DaemonTaskDefinitionContainerDefinitionLinuxParametersTmpfArgs
- Container
Path string - Absolute file path where the tmpfs volume is to be mounted.
- Size int
- Maximum size (in MiB) of the tmpfs volume.
- Mount
Options List<string> - List of tmpfs volume mount options.
- Container
Path string - Absolute file path where the tmpfs volume is to be mounted.
- Size int
- Maximum size (in MiB) of the tmpfs volume.
- Mount
Options []string - List of tmpfs volume mount options.
- container_
path string - Absolute file path where the tmpfs volume is to be mounted.
- size number
- Maximum size (in MiB) of the tmpfs volume.
- mount_
options list(string) - List of tmpfs volume mount options.
- container
Path String - Absolute file path where the tmpfs volume is to be mounted.
- size Integer
- Maximum size (in MiB) of the tmpfs volume.
- mount
Options List<String> - List of tmpfs volume mount options.
- container
Path string - Absolute file path where the tmpfs volume is to be mounted.
- size number
- Maximum size (in MiB) of the tmpfs volume.
- mount
Options string[] - List of tmpfs volume mount options.
- container_
path str - Absolute file path where the tmpfs volume is to be mounted.
- size int
- Maximum size (in MiB) of the tmpfs volume.
- mount_
options Sequence[str] - List of tmpfs volume mount options.
- container
Path String - Absolute file path where the tmpfs volume is to be mounted.
- size Number
- Maximum size (in MiB) of the tmpfs volume.
- mount
Options List<String> - List of tmpfs volume mount options.
DaemonTaskDefinitionContainerDefinitionLogConfiguration, DaemonTaskDefinitionContainerDefinitionLogConfigurationArgs
- Log
Driver string - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - Options Dictionary<string, string>
- Configuration options to send to the log driver.
- Secret
Options List<DaemonTask Definition Container Definition Log Configuration Secret Option> - Secrets to pass to the log configuration. Detailed below.
- Log
Driver string - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - Options map[string]string
- Configuration options to send to the log driver.
- Secret
Options []DaemonTask Definition Container Definition Log Configuration Secret Option - Secrets to pass to the log configuration. Detailed below.
- log_
driver string - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - options map(string)
- Configuration options to send to the log driver.
- secret_
options list(object) - Secrets to pass to the log configuration. Detailed below.
- log
Driver String - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - options Map<String,String>
- Configuration options to send to the log driver.
- secret
Options List<DaemonTask Definition Container Definition Log Configuration Secret Option> - Secrets to pass to the log configuration. Detailed below.
- log
Driver string - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - options {[key: string]: string}
- Configuration options to send to the log driver.
- secret
Options DaemonTask Definition Container Definition Log Configuration Secret Option[] - Secrets to pass to the log configuration. Detailed below.
- log_
driver str - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - options Mapping[str, str]
- Configuration options to send to the log driver.
- secret_
options Sequence[DaemonTask Definition Container Definition Log Configuration Secret Option] - Secrets to pass to the log configuration. Detailed below.
- log
Driver String - Log driver to use for the container. Valid values:
json-file,syslog,journald,gelf,fluentd,awslogs,splunk,awsfirelens. - options Map<String>
- Configuration options to send to the log driver.
- secret
Options List<Property Map> - Secrets to pass to the log configuration. Detailed below.
DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOption, DaemonTaskDefinitionContainerDefinitionLogConfigurationSecretOptionArgs
- name string
- Name of the secret.
- value_
from string - Secret to expose to the log configuration.
- name str
- Name of the secret.
- value_
from str - Secret to expose to the log configuration.
DaemonTaskDefinitionContainerDefinitionMountPoint, DaemonTaskDefinitionContainerDefinitionMountPointArgs
- Container
Path string - Path on the container to mount the host volume at.
- Read
Only bool - If this value is true, the container has read-only access to the volume.
- Source
Volume string - Name of the volume to mount.
- Container
Path string - Path on the container to mount the host volume at.
- Read
Only bool - If this value is true, the container has read-only access to the volume.
- Source
Volume string - Name of the volume to mount.
- container_
path string - Path on the container to mount the host volume at.
- read_
only bool - If this value is true, the container has read-only access to the volume.
- source_
volume string - Name of the volume to mount.
- container
Path String - Path on the container to mount the host volume at.
- read
Only Boolean - If this value is true, the container has read-only access to the volume.
- source
Volume String - Name of the volume to mount.
- container
Path string - Path on the container to mount the host volume at.
- read
Only boolean - If this value is true, the container has read-only access to the volume.
- source
Volume string - Name of the volume to mount.
- container_
path str - Path on the container to mount the host volume at.
- read_
only bool - If this value is true, the container has read-only access to the volume.
- source_
volume str - Name of the volume to mount.
- container
Path String - Path on the container to mount the host volume at.
- read
Only Boolean - If this value is true, the container has read-only access to the volume.
- source
Volume String - Name of the volume to mount.
DaemonTaskDefinitionContainerDefinitionRepositoryCredentials, DaemonTaskDefinitionContainerDefinitionRepositoryCredentialsArgs
- Credentials
Parameter string - ARN of the secret containing the private repository credentials.
- Credentials
Parameter string - ARN of the secret containing the private repository credentials.
- credentials_
parameter string - ARN of the secret containing the private repository credentials.
- credentials
Parameter String - ARN of the secret containing the private repository credentials.
- credentials
Parameter string - ARN of the secret containing the private repository credentials.
- credentials_
parameter str - ARN of the secret containing the private repository credentials.
- credentials
Parameter String - ARN of the secret containing the private repository credentials.
DaemonTaskDefinitionContainerDefinitionRestartPolicy, DaemonTaskDefinitionContainerDefinitionRestartPolicyArgs
- Enabled bool
- Whether a restart policy is enabled for the container.
- Ignored
Exit List<int>Codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- Restart
Attempt intPeriod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- Enabled bool
- Whether a restart policy is enabled for the container.
- Ignored
Exit []intCodes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- Restart
Attempt intPeriod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- enabled bool
- Whether a restart policy is enabled for the container.
- ignored_
exit_ list(number)codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- restart_
attempt_ numberperiod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- enabled Boolean
- Whether a restart policy is enabled for the container.
- ignored
Exit List<Integer>Codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- restart
Attempt IntegerPeriod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- enabled boolean
- Whether a restart policy is enabled for the container.
- ignored
Exit number[]Codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- restart
Attempt numberPeriod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- enabled bool
- Whether a restart policy is enabled for the container.
- ignored_
exit_ Sequence[int]codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- restart_
attempt_ intperiod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
- enabled Boolean
- Whether a restart policy is enabled for the container.
- ignored
Exit List<Number>Codes - List of exit codes that Amazon ECS will ignore and not attempt a restart on. Maximum of 50.
- restart
Attempt NumberPeriod - Period of time (in seconds) that the container must run for before a restart can be attempted. Valid range: 60–1800.
DaemonTaskDefinitionContainerDefinitionSecret, DaemonTaskDefinitionContainerDefinitionSecretArgs
- name string
- Name of the secret.
- value_
from string - Secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.
- name str
- Name of the secret.
- value_
from str - Secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.
DaemonTaskDefinitionContainerDefinitionSystemControl, DaemonTaskDefinitionContainerDefinitionSystemControlArgs
DaemonTaskDefinitionContainerDefinitionUlimit, DaemonTaskDefinitionContainerDefinitionUlimitArgs
- hard_
limit number - Hard limit for the ulimit type.
- name string
- Type of the ulimit.
- soft_
limit number - Soft limit for the ulimit type.
- hard_
limit int - Hard limit for the ulimit type.
- name str
- Type of the ulimit.
- soft_
limit int - Soft limit for the ulimit type.
DaemonTaskDefinitionVolume, DaemonTaskDefinitionVolumeArgs
- Name string
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - Hosts
List<Daemon
Task Definition Volume Host> - Configuration for a host volume. Detailed below.
- Name string
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - Hosts
[]Daemon
Task Definition Volume Host - Configuration for a host volume. Detailed below.
- name string
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - hosts list(object)
- Configuration for a host volume. Detailed below.
- name String
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - hosts
List<Daemon
Task Definition Volume Host> - Configuration for a host volume. Detailed below.
- name string
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - hosts
Daemon
Task Definition Volume Host[] - Configuration for a host volume. Detailed below.
- name str
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - hosts
Sequence[Daemon
Task Definition Volume Host] - Configuration for a host volume. Detailed below.
- name String
- Name of the volume. This name is referenced in the
sourceVolumeparameter of container definition in themountPointssection. - hosts List<Property Map>
- Configuration for a host volume. Detailed below.
DaemonTaskDefinitionVolumeHost, DaemonTaskDefinitionVolumeHostArgs
- Source
Path string - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- Source
Path string - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- source_
path string - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- source
Path String - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- source
Path string - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- source_
path str - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
- source
Path String - Path on the host container instance that is presented to the container. If not set, ECS will create a non-persistent data volume that starts empty and is deleted after the task has finished.
Import
Identity Schema
Required
arn(String) ARN of the ECS Daemon Task Definition.
Using pulumi import, import ECS Daemon Task Definitions using their ARNs. For example:
$ pulumi import aws:ecs/daemonTaskDefinition:DaemonTaskDefinition example arn:aws:ecs:us-east-1:012345678910:daemon-task-definition/mydaemonfamily:123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Monday, Jun 15, 2026 by Pulumi