Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon Elastic Container Service Service AwsVpcConfiguration

AwsVpcConfiguration is a property of the AWS::ECS::Service resource that specifies the subnets and security groups for an Amazon Elastic Container Service (Amazon ECS) task or service.

Syntax

JSON

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

YAML

AssignPublicIp: String SecurityGroups: - String Subnets: - String

Properties

AssignPublicIp

Valid values include ENABLED and DISABLED.

Required: No

Type: String

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.

Required: No

Type: List of String values

Update requires: No interruption

Subnets

The subnets associated with the Amazon ECS task or service.

Required: Yes

Type: List of String values

Update requires: No interruption

On this page: