AWS::ECS::Service AwsVpcConfiguration
An object representing the networking details for a task or service.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "AssignPublicIp" :String, "SecurityGroups" :[ String, ... ], "Subnets" :[ String, ... ]}
YAML
AssignPublicIp:StringSecurityGroups:- StringSubnets:- 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 | ENABLEDUpdate requires: No interruption
SecurityGroups-
The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's 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 IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per
AwsVpcConfiguration.Note
All specified subnets must be from the same VPC.
Required: No
Type: List of String
Update requires: No interruption