VPC



A customizable virtual network where you can launch AWS resources, providing network isolation and security for your applications.


Example yaml file:


apiVersion: aws.boundless.software/v1alpha1
kind: Vpc
metadata:
  name: switchblade-sample
spec:
  provider:
    region: us-east-1
  cidrBlock: “10.0.0.0/16”
  subnets:
    – cidrBlock: “10.0.1.0/24”
      type: “public”
      zone: “us-east-1a”
      tags:
        Name: “switchblade-sample-public-subnet”
    – cidrBlock: “10.0.2.0/24”
      type: “private”
      zone: “us-east-1b”
      tags:
        Name: “switchblade-sample-private-subnet”
  natGateway:
    zones:
      – “us-east-1a”
      – “us-east-1b”
  routeTables:
    – name: “switchblade-sample-route-table”
      routes:
        – destination: “0.0.0.0/0”
          routeTableId: “rtb-12345678”
          gatewayId: “igw-12345678”
      subnets:
        – “subnet-12345678”
      tags:
        Name: “switchblade-sample-route-table”
  endpoints:
    – service: “com.amazonaws.us-east-1.s3”
      type: “Gateway”
  peers:
    – peerCidr: “192.168.0.0/16”
      peerRegion: “us-west-1”
      peerOwnerId: “123456789012”
      peerVpcId: “vpc-abcdef12”
      routeTableIds:
        – “rtb-12345678”
      autoAccept: true
  tags:
    Name: “switchblade-sample-vpc”
    Project: “Switchblade”

Inputs


NameTypeDescription
provider*AwsProviderSpecProvider specifies the AWS provider settings for this VPC.
cidrBlock*stringCidrBlock is the IPv4 network range for the VPC.
subnets*[]SubnetSpecSubnets specifies the subnets to be created within this VPC.
natGatewayNatGatewaySpecNatGateway specifies the NAT Gateway settings for this VPC.
routeTables[]RouteTableSpecRouteTables specifies the route tables to be created for this VPC.
endpoints[]EndpointSpecEndpoints specifies the VPC Endpoints to be created for this VPC.
peers[]PeerSpecPeers specifies the VPCs to be peered with this VPC.
tagsmap[string]stringTags are metadata to assign to the VPC.

SubnetSpec


NameTypeDescription
cidrBlock*stringCidrBlock is the IPv4 network range for the subnet.
type*stringType is the type of the subnet.
zone*stringZone is the availability zone where the subnet is created.
tagsmap[string]stringTags are metadata to assign to the subnet.

NatGatewaySpec


NameTypeDescription
zones*[]stringZones are the availability zones for the NAT Gateway.

RouteTableSpec


NameTypeDescription
name*stringName is the name of the Route Table.
routes[]RouteSpecRoutes specifies the routes to be added to this Route Table.
subnets[]stringSubnets specifies the subnets associated with this Route Table.
tagsmap[string]stringTags are metadata to assign to the Route Table.

EndpointSpec


NameTypeDescription
servicestringService specifies the service to be accessed via this endpoint.
policymap[string]stringPolicy defines the policy for the endpoint.
privateDnsEnabledboolPrivateDnsEnabled indicates whether private DNS is enabled for this endpoint.
routeTableIds[]stringRouteTableIds specifies the route tables to associate with the endpoint.
securityGroupIds[]stringSecurityGroupIds specifies the security groups to associate with the endpoint.
subnetIds[]stringSubnetIds specifies the subnets to associate with the endpoint.
tagsmap[string]stringTags are metadata to assign to the endpoint.
typestringType specifies the type of the endpoint.

PeerSpec


NameTypeDescription
peerCidr*stringPeerCidr specifies the CIDR block of the peer VPC.
peerRegion*stringPeerRegion specifies the region of the peer VPC.
peerOwnerId*stringPeerOwnerId specifies the owner ID of the peer VPC.
peerVpcId*stringPeerVpcId specifies the VPC ID of the peer VPC.
routeTableIds*[]stringRouteTableIds specifies the route tables to update with the peering connection.
autoAcceptboolAutoAccept specifies whether the peering request will be auto-accepted.
tagsmap[string]stringTags are metadata to assign to the peering connection.

RouteSpec


NameTypeDescription
destination*stringDestination specifies the CIDR block of the route.
routeTableId*stringRouteTableId is the ID of the Route Table to which this route will be added.
gatewayIdstringGatewayId is the ID of the internet gateway or virtual private gateway.
natGatewayIdstringNatGatewayId is the ID of the NAT gateway.
transitGatewayIdstringTransitGatewayId is the ID of the transit gateway.
vpcEndpointIdstringVpcEndpointId is the ID of the VPC endpoint.
vpcPeeringConnectionIdstringVpcPeeringConnectionId is the ID of the VPC peering connection.

Outputs


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this VPC.
vpcIdstringId is the AWS VPC ID.
subnetsmap[string]SubnetStatusSubnets provides the status of subnets within this VPC.
internetGatewayInternetGatewayStatusInternetGateway provides the status of the internet gateway within this VPC.
natGatewaymap[string]NatGatewayStatusNatGateways provides the status of NAT gateways within this VPC.
routeTablesmap[string]RouteTableStatusRouteTables provides the status of route tables within this VPC.

SubnetStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this Subnet.
cidrBlockstringCidrBlock is the CIDR block of this Subnet.
idstringId is the AWS Subnet ID.
typestringType specifies whether the subnet is public, private, or isolated.
zonestringZone is the availability zone where the subnet resides.

InternetGatewayStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this Internet Gateway.
idstringId is the AWS Internet Gateway ID.

NatGatewayStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this NAT Gateway.
idstringId is the AWS NAT Gateway ID.
elasticIpstringElasticIp is the elastic IP associated with this NAT Gateway.
zonestringZone is the availability zone where the NAT Gateway resides.

RouteTableStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this Route Table.
namestringName is the name of the Route Table.
typestringType specifies the type of the Route Table.
idstringId is the AWS Route Table ID.
associationsmap[string]stringAssociations specifies the associated subnets.
routesmap[string]RouteStatusRoutes specifies the status of routes within this Route Table.

RouteStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides the current condition of this Route.
destinationstringDestination is the CIDR block of the route.



Previous

<< EKS

Next

IAM >>