src/vpc.js
function buildVpc(cidrBlock = '10.0.0.0/16', { name = 'VPC' } = {}) {
  return {
    [name]: {
      Type: 'AWS::EC2::VPC',
      Properties: {
        CidrBlock: cidrBlock,
        EnableDnsSupport: true,
        EnableDnsHostnames: true,
        InstanceTenancy: 'default',
        Tags: [
          {
            Key: 'Name',
            Value: {
              Ref: 'AWS::StackName',
            },
          },
        ],
      },
    },
  };
}
function buildVpc(cidrBlock = '10.0.0.0/16', { name = 'VPC' } = {}) {
  return {
    [name]: {
      Type: 'AWS::EC2::VPC',
      Properties: {
        CidrBlock: cidrBlock,
        EnableDnsSupport: true,
        EnableDnsHostnames: true,
        InstanceTenancy: 'default',
        Tags: [
          {
            Key: 'Name',
            Value: {
              Ref: 'AWS::StackName',
            },
          },
        ],
      },
    },
  };
}
function buildVpc ( cidrBlock = '10.0.0.0/16' , { name = 'VPC' } = { } ) { return { [ name ] : { Type : 'AWS::EC2::VPC' , Properties : { CidrBlock : cidrBlock , EnableDnsSupport : true , EnableDnsHostnames : true , InstanceTenancy : 'default' , Tags : [ { Key : 'Name' , Value : { Ref : 'AWS::StackName' , } , } , ] , } , } , } ; }
Build a VPC

@param {String} cidrBlock
@param {Object} params
@return {Object}
Build a VPC