Skip to main content

AwsSimpleSubnetModule

AwsSimpleSubnetModule is a simple AWS subnet module that provides an implementation for the Subnet model. This module creates VPC subnets with configurable network settings, NAT gateway support, and filesystem mounting capabilities. It manages network isolation and connectivity for containerized applications within AWS regions.

@example

TypeScript

import { AwsSimpleSubnetModule } from '@quadnix/octo-aws-cdk/modules/subnet/aws-simple-subnet';

octo.loadModule(AwsSimpleSubnetModule, 'my-subnet-module', {
localFilesystems: [myEfsFilesystem],
region: myRegion,
subnetAvailabilityZone: 'us-east-1a',
subnetCidrBlock: '10.0.1.0/24',
subnetName: 'private-subnet-1',
subnetOptions: {
createNatGateway: false,
disableSubnetIntraNetwork: false,
subnetType: SubnetType.PRIVATE,
},
subnetSiblings: [{
attachToNatGateway: true,
subnet: mySiblingSubnet,
}],
});
@group

Modules/Subnet/AwsSimpleSubnet

@see

Hierarchy

Index

Constructors

constructor

  • Returns AwsSimpleSubnetModule

Methods

onInit

registerMetadata

  • registerMetadata(inputs: AwsSimpleSubnetModuleSchema): Promise<{ awsAccountId: string; awsAvailabilityZones: string[]; awsRegionId: string; awsRegionVpcCidrBlock: string }>
  • Parameters

    Returns Promise<{ awsAccountId: string; awsAvailabilityZones: string[]; awsRegionId: string; awsRegionVpcCidrBlock: string }>

Page Options