AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::ECS::Service AwsVpcConfiguration

The AwsVpcConfiguration property specifies an object representing the networking details for a task or service.

Syntax

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

JSON

{ "AssignPublicIp" : String, "SecurityGroups" : [ String, ... ], "Subnets" : [ String, ... ] }

YAML

AssignPublicIp: String SecurityGroups: - String Subnets: - String

Properties

AssignPublicIp

Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

Required: No

Type: String

Allowed Values: DISABLED | ENABLED

Update requires: No interruption

SecurityGroups

The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.

Note

All specified security groups must be from the same VPC.

Required: No

Type: List of String

Update requires: No interruption

Subnets

The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.

Note

All specified subnets must be from the same VPC.

Required: Yes

Type: List of String

Update requires: No interruption

On this page: