Skip to main content

AwsSimpleSubnetModuleSchema

AwsSimpleSubnetModuleSchema is the input schema for the AwsSimpleSubnetModule module: a subnet of a region's network, where it sits, which subnets it talks to, and the filesystems mounted in it.

@group

Modules/Subnet/AwsSimpleSubnet

@see

AwsSimpleSubnetModule to learn more about the AwsSimpleSubnetModule module.

Index

Properties

optionallocalFilesystems

localFilesystems?: Filesystem[] = []

The EFS filesystems mounted in this subnet, from AwsEfsFilesystemModule in the same region. An ECS execution in the subnet can then mount them in its containers.

region

region: Region

The region whose network the subnet is part of, from AwsSingleAzRegionModule or AwsMultiAzRegionModule.

subnetAvailabilityZone

subnetAvailabilityZone: string

The availability zone the subnet sits in, one of the region's, e.g. us-east-1a.

subnetCidrBlock

subnetCidrBlock: string

The subnet's address range, e.g. 10.0.1.0/24, inside the region's vpcCidrBlock and apart from every other subnet's.

subnetName

subnetName: string

The subnet's name, unique in its region, e.g. private. It is part of the context of everything placed in the subnet.

optionalsubnetOptions

subnetOptions?: { createNatGateway: boolean; disableSubnetIntraNetwork: boolean; subnetType: SubnetType } = { createNatGateway: false, disableSubnetIntraNetwork: false, subnetType: SubnetType.PRIVATE, }

How the subnet behaves:

  • subnetOptions.subnetType - private or public, the default private. See SubnetType.
  • subnetOptions.createNatGateway - whether the subnet holds a NAT gateway that private siblings reach the internet through. Only a public subnet holds one.
  • subnetOptions.disableSubnetIntraNetwork - whether things in the subnet are refused traffic from each other, so they reach each other only from outside it, such as through a load balancer.

Type declaration

  • createNatGateway: boolean
  • disableSubnetIntraNetwork: boolean
  • subnetType: SubnetType

optionalsubnetSiblings

subnetSiblings?: { attachToNatGateway: boolean; subnet: Subnet }[] = []

The subnets of the same region this one exchanges traffic with, each opened in both subnets' network ACLs:

  • subnetSiblings.subnet - the sibling, from AwsSimpleSubnetModule.
  • subnetSiblings.attachToNatGateway - whether this subnet reaches the internet through the sibling's NAT gateway.