In CloudShell 9.1, subnets are supported out-of-the-box for AWS EC2 and Azure.
This article explains how to configure CloudShell's Subnet service to enable the creation of multiple subnets in a single sandbox.
During the sandbox's setup, CloudShell creates the subnets in the public cloud and during App deployment, each App's VM is connected to the appropriate subnets. Subnet-based connectivity supports connections involving public cloud Apps (peer-to-peer and many-to-many).
- By default, CloudShell creates a subnet for every sandbox that has public cloud Apps. If additional subnets are required, the blueprint designer can add Subnet services to the blueprint and/or create peer-to-peer connections between AWS/Azure Apps. Note that if additional subnets are used, the default subnet will not be created in the sandbox.
- CloudShell creates the necessary route tables in AWS/Azure.
To use subnets in CloudShell, the system administrator needs to perform the following configurations:
To expose the Subnet service in the Apps / Services catalog of a specific domain, you must associate the service family to each desirable domain's service category. For information about creating service categories for domains, see Creating a service catalog category.
To associate the Subnet service to the domain category:
- As system administrator, log into Resource Manager Client.
In the Admin ribbon, click Resource Families.
The Resource Families explorer is displayed.
Click the Virtual Network service family.
The family's Parameters pane is displayed.
- Click the Categories tab.
The Select Category dialog box is displayed.
- Select the domain category. To select multiple categories, press the [Shift] key.
- Save your changes.
This section explains how to customize the default settings of the Subnet service and control which settings can be changed by the user in the blueprint diagram. To learn how to add a subnet to a blueprint and set the service's attribute values, see Services in Blueprints.
To customize a Subnet preset's attributes:
In the Resource Families explorer, open the Virtual Network service family and click the Subnet service model. Alternatively, copy the service model to customize a separate preset.
The Parameters pane is displayed to the right of the Resource Families explorer.
Click the Attributes tab and configure the required attributes:
Allocated CIDR (Read only attribute) This attribute stores the CIDR allocated to the subnet by the sandbox. The allocated CIDR is based on the service's Subnet Size. Public Determines if the subnet is connected to the internet. QnQ
Sets the Subnet connection to be in QinQ mode. Default is False.
Subnet Id Read only attribute that displays the allocated subnet ID. Subnet Size
Defines the possible sizes of this subnet (block size of the subnet CIDR). Possible values: 16, 32, 64, 128 (corresponding to block sizes of /28, /27, /26 and /25). The maximum VPC IP range is 256 IPs (/24), and cannot be changed in CloudShell 8.2.
Note: Since each cloud provider has a few IPs in each subnet reserved for networking services, the actual number of Apps that can be added to a subnet is lower than the number set in the subnet size attribute. Currently in AWS, 5 IPs are reserved.
- Save your changes.