ExpressGatewayContainer - Amazon Elastic Container Service

ExpressGatewayContainer

Defines the configuration for the primary container in an Express service. This container receives traffic from the Application Load Balancer and runs your application code.

The container configuration includes the container image, port mapping, logging settings, environment variables, and secrets. The container image is the only required parameter, with sensible defaults provided for other settings.

Contents

image

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest.

For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.

Type: String

Required: Yes

awsLogsConfiguration

The log configuration for the container.

Type: ExpressGatewayServiceAwsLogsConfiguration object

Required: No

command

The command that is passed to the container.

Type: Array of strings

Required: No

containerPort

The port number on the container that receives traffic from the load balancer. Default is 80.

Type: Integer

Required: No

environment

The environment variables to pass to the container.

Type: Array of KeyValuePair objects

Required: No

repositoryCredentials

The configuration for repository credentials for private registry authentication.

Type: ExpressGatewayRepositoryCredentials object

Required: No

secrets

The secrets to pass to the container.

Type: Array of Secret objects

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: