AwsEcsBootstrapTaskDefinitionPresetArgs

interface AwsEcsBootstrapTaskDefinitionPresetArgs { containerName?: Input<string>; containerPort?: Input<number>; containerPortProtocol?: Input<string>; cpu?: Input<string>; executionRole: Input<string>; image?: Input<string>; memory?: Input<string>; name: string; tags?: Input<Record<string, Input<string>>>; taskRole: Input<string>; }

Common bootstrap preset inputs for ECS task definitions.

Example

CODE
const taskDefinition = new AwsEcs({
  taskDefinition: buildAwsEcsApplicationTaskDefinitionArgs({
    name: 'app',
    executionRole,
    taskRole,
  }),
});

Properties

containerName: Input<string>

Optional container name override.

containerPort: Input<number>

Optional container port override. Defaults to 8080.

containerPortProtocol: Input<string>

Optional container port protocol. Defaults to tcp.

cpu: Input<string>

Optional CPU units for the task definition. Defaults to 256.

executionRole: Input<string>

IAM role used by ECS agent actions. Accepts role ARN or role name.

image: Input<string>

Optional container image override.

memory: Input<string>

Optional memory for the task definition. Defaults to 512.

name: string

ECS task definition purpose name used in style 2 naming.

tags: Input<Record<string, Input<string>>>

Optional task-definition tags merged by AwsEcsTaskDefinition.

taskRole: Input<string>

IAM role assumed by the running task. Accepts role ARN or role name.