Information
You can create a VPC that spans multiple Availability Zones. After creating a VPC, you can add one or more subnets in each Availability Zone. Each subnet must reside entirely within one Availability Zone and cannot span zones. Availability Zones are distinct locations that are engineered to be isolated from failures in other Availability Zones. By launching instances in separate Availability Zones, you can protect your applications from the failure of a single location. AWS assigns a unique ID to each subnet.
When you create a subnet, you specify the CIDR block for the subnet. The CIDR block of a subnet shouldn't be the same as the CIDR block for the VPC (for a single subnet in the VPC). The allowed block size is between a /28 netmask and /16 netmask. If you create more than one subnet in a VPC, the CIDR blocks of the subnets must not overlap.
Some AWS regions have more than 2 availability zones and it is recommended to use more than 2 where possible.
At least 2 subnets in 2 different availability zones (AZ) should be created in order to have fault tolerance and high availability from the perspective of resource deployment.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
Using the Amazon unified command line interface:
* Create subnets for App tier, and note the subnet id:
aws ec2 create-subnet --vpc-id <application_vpc> --cidr-block <desired_cidr>
* Tag the above subnets with the App tier tags:
aws ec2 create-tags --resources <app_tier_subnet1> <app_tier_subnet2> --tags Key=<app_tier_tag>,Value=<app_tier_tag_value>