Skip to content

Instantly share code, notes, and snippets.

View simonguldstrand's full-sized avatar

Simon Guldstrand simonguldstrand

  • Linköping, Sweden
View GitHub Profile
#!/usr/bin/env bash
usage="Usage: $(basename "$0") region stack-name [aws-cli-opts]
where:
region - the AWS region
stack-name - the stack name
aws-cli-opts - extra options passed directly to create-stack/update-stack
"
@simonguldstrand
simonguldstrand / lambda-vpc-internet-access-cloudformation.yml
Created April 17, 2020 09:14 — forked from 030/lambda-vpc-internet-access-cloudformation.yml
CloudFormation template implementing Private network which can be used by Serverless to deploy Lambda into VPCs an maintaining internet access
# Add the following to your existing VPC CF stack
# create 2 subnets, lambdas like to be in multiple subnets
Private1:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
AvailabilityZone: !Select [ 0, !GetAZs ]
CidrBlock: !Ref Private1CIDR