src/vpc.js
function buildLambdaSecurityGroup({ name = 'LambdaExecutionSecurityGroup' } = {}) {
  return {
    [name]: {
      Type: 'AWS::EC2::SecurityGroup',
      Properties: {
        GroupDescription: 'Lambda Execution Group',
        VpcId: {
          Ref: 'VPC',
        },
        Tags: [
          {
            Key: 'Name',
            Value: {
              'Fn::Join': [
                '-',
                [
                  {
                    Ref: 'AWS::StackName',
                  },
                  'lambda-exec',
                ],
              ],
            },
          },
        ],
      },
    },
  };
}
function buildLambdaSecurityGroup({ name = 'LambdaExecutionSecurityGroup' } = {}) {
  return {
    [name]: {
      Type: 'AWS::EC2::SecurityGroup',
      Properties: {
        GroupDescription: 'Lambda Execution Group',
        VpcId: {
          Ref: 'VPC',
        },
        Tags: [
          {
            Key: 'Name',
            Value: {
              'Fn::Join': [
                '-',
                [
                  {
                    Ref: 'AWS::StackName',
                  },
                  'lambda-exec',
                ],
              ],
            },
          },
        ],
      },
    },
  };
}
function buildLambdaSecurityGroup ( { name = 'LambdaExecutionSecurityGroup' } = { } ) { return { [ name ] : { Type : 'AWS::EC2::SecurityGroup' , Properties : { GroupDescription : 'Lambda Execution Group' , VpcId : { Ref : 'VPC' , } , Tags : [ { Key : 'Name' , Value : { 'Fn::Join' : [ '-' , [ { Ref : 'AWS::StackName' , } , 'lambda-exec' , ] , ] , } , } , ] , } , } , } ; }
Build a SecurityGroup to be used by Lambda's when they execute.

@param {Object} params
@return {Object}
Build a SecurityGroup to be used by Lambda s when they execute .