Skip to content

Instantly share code, notes, and snippets.

@efi-mk
efi-mk / network.yaml
Last active January 13, 2023 14:52
A cloud formation script to create a vpc with 2 private subnets and 1 public subnet
AWSTemplateFormatVersion: 2010-09-09
Description: My Network Environment
Resources:
# VPC containing 3 subnets, 1 is public, while the other 2 are private for RDS
MyVPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsSupport: 'true'
EnableDnsHostnames: 'true'
@efi-mk
efi-mk / update_environment.sh
Created July 12, 2018 16:59
Serverless testing from the trenches - deployment script
#!/usr/bin/env bash
# Exit on error
set -e
# Update git repository with latest
# Arg 1 - repository name
# Arg 2 - source dir
update_git () {
full_path=${2}/${1}
# If directory exists then run git stuff there