AWS::ECS::TaskDefinition HostEntry - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::ECS::TaskDefinition HostEntry

The HostEntry property specifies a hostname and an IP address that are added to the /etc/hosts file of a container through the extraHosts parameter of its ContainerDefinition resource.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Hostname" : String, "IpAddress" : String }

YAML

Hostname: String IpAddress: String

Properties

Hostname

The hostname to use in the /etc/hosts entry.

Required: No

Type: String

Update requires: Replacement

IpAddress

The IP address to use in the /etc/hosts entry.

Required: No

Type: String

Update requires: Replacement