AWS::ECS::TaskDefinition HostEntry - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 Amazon 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