cdk-nwfirewall
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

AWS Network Firewall Accelerator

This CDK app takes a few optional parameters and creates a VPC with AWS Network Firewall. This includes the proper Edge Route Table routes and the proper VPC Endpoint of the GWLB. It also includes a default set of stateless rules to only allow 80/tcp, 443/tcp, 123/udp, and 53/ip out. Also has a default set of white listed domains - mainly for common software updates.

Architecture Diagram

Supported Parameters:

  cidr?: string
  maxAzs?: number
  firewallsubnetname?: string
  publicsubnetname?: string
  privatesubnetname?: string
  firewallmask?: number
  publicmask?: number
  privatemask?: number
  domainlist?: string[]

Example for deploying

#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
import { FirewallStack, FWVPCProps } from '../lib/firewall-stack';

const app = new cdk.App();
new FirewallStack(app, 'FirewallStack', {}, {cidr: '192.168.0.0/24', privatesubnetname: 'tgw-attach'});

Example of method for extracting values from construct.

  new ec2.CfnNatGateway(this, 'nat-gw', {
    subnetId: firewall.listPublicSubnets().subnets[0].subnetId,
  });

Blog: https://medium.com/@matthewvenne/cdk-once-more-unto-the-breach-f2673cf219a6

Package Sidebar

Install

npm i cdk-nwfirewall

Weekly Downloads

1

Version

0.0.15

License

Apache-2.0

Unpacked Size

122 kB

Total Files

12

Last publish

Collaborators

  • vennemp