Network Config¶
Tasks running on Fargate must be launched within a VPC Subnet. The network configuration block will allow you to specify which subnets and security groups will be
Usage¶
network:
subnets:
- subnet-00000000000
- subnet-11111111111
- name: state
values:
- available
- name: tag:cloud87/subnet_class
value: host
security_groups:
- sg-1234567890
- sg-9876543210
- name: group-name
values: ["cloud87-ecs"]
public_ip: false
Fields¶
subnets
-
Specify SubnetIDs or a list of filters that can be used to locate the desired Subnets.
For more information:
security_groups
-
Specify SecurityGroupIDs or a list of filters that can be used to locate the desired SecurityGroups.
For more information:
public_ip
-
Whether or not this task should be giving a public IP address.
Default:
false
Specifying Filters¶
Filters are specified using a list of filter objects. Each object should have the following structure:
name
- (required)-
The "Name" of the filter to use. Possible names dependent on whether you are using it for SecurityGroups or Subnets.
You can view possible values for filter names at:
values
- (required)-
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.
network: subnets: - name: vpc-id values: vpc-1234567
network: subnets: - name: availability-zones values: - us-east-1a - us-east-1b - us-east-1c