Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Guldstrand simonguldstrand

  • Linköping, Sweden
View GitHub Profile
View create-or-update-stack.sh
#!/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 Apr 17, 2020 — 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
View lambda-vpc-internet-access-cloudformation.yml
# 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