IBM::EC2::Subnet

This resource type represents a subnet on Amazon Elastic Compute Cloud. It extends the type OS::Neutron::Subnet.
Table 1. Properties
Name Type Required Description
allocation_pools List False The start and end addresses for the allocation pools. See Table 3.
cidr String True CIDR subnet mask.
dns_nameservers List False A list of DNS servers to use on the subnet.
enable_dhcp Boolean False True if DHCP is enabled and false if DHCP is disabled.
gateway_ip String False Gateway IP address.
host_routes List False Additional routes to add to the subnet. See Table 4.
ip_version Integer False The IP version. Allowable values are 4 and 6. By default, the ip_version parameter is set to 4.
name String False Name of the subnet.
network_id String True ID of the attached network.
tenant_id String False ID of the tenant that owns the network. Only administrative users can specify a tenant ID other than their own.
value_specs Map False Additional parameters to include in the creation request.
Table 2. Custom properties
Name Type Required Description
availability_zone String True The availability zone of the subnet.
auto_assign_public_ip Boolean False Enable the subnet to automatically assign a public IP address.
The allocation_pools parameter requires the start and end addresses for the allocation pool. The following table shows the properties in each list item.
Table 3. allocation_pools list properties
Property Type Required Description
start String True Start address for an allocation pool.
end String True End address for an allocation pool.
The host_routes parameter requires a list of routes. The following table shows the properties in each list item.
Table 4. host_routes list properties
Property Type Required Description
destination String True CIDR subnet mask.
nexthop String True IP address of the next hop to the route to add.
This resource type has no attributes.

Feedback