AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECS::ExpressGatewayService

CfnExpressGatewayService

Creates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed AWS infrastructure. This operation provisions and configures Application Load Balancers, target groups, security groups, and auto-scaling policies automatically. Specify a primary container configuration with your application image and basic settings. Amazon ECS creates the necessary AWS resources for traffic distribution, health monitoring, network access control, and capacity management. Provide an execution role for task operations and an infrastructure role for managing AWS resources on your behalf.

Import

import { CfnExpressGatewayService } from 'aws-cdk-lib/aws-ecs';

Or use the module namespace:

import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.CfnExpressGatewayService

Properties

Configuration passed to the constructor as CfnExpressGatewayServiceProps.

executionRoleArnRequired
string

The ARN of the task execution role for the service revision.

infrastructureRoleArnRequired
string

The ARN of the infrastructure role that manages AWS resources for the Express service.

primaryContainerRequired
IResolvable | ExpressGatewayContainerProperty

The primary container configuration for this service revision.

clusterOptional
string

The short name or full ARN of the cluster that hosts the Express service.

Default: - "default"

cpuOptional
string

The CPU allocation for tasks in this service revision.

Default: - "256"

healthCheckPathOptional
string

The health check path for this service revision.

Default: - "HTTP:80/ping"

memoryOptional
string

The memory allocation for tasks in this service revision.

Default: - "512"

networkConfigurationOptional
IResolvable | ExpressGatewayServiceNetworkConfigurationProperty

The network configuration for tasks in this service revision.

scalingTargetOptional
IResolvable | ExpressGatewayScalingTargetProperty

The auto-scaling configuration for this service revision.

serviceNameOptional
string

The name of the Express service.

tagsOptional
CfnTag[]

The metadata applied to the Express service.

taskRoleArnOptional
string

The ARN of the task role for the service revision.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon ECS Cheat Sheet

Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.

Download Free Infographic