This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LEFT_GW_IP=35.157.246.157 | |
export LEFT_CIDR=10.1.1.0/24 | |
export RIGHT_GW_IP=35.158.110.212 | |
export RIGHT_CIDR=10.2.1.0/24 | |
sudo su | |
apt-get update -y | |
apt-get install -y strongswan | |
cat >> /etc/sysctl.conf << EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
access_key = "" | |
secret_key = "" | |
region = "us-east-1" | |
} | |
locals { | |
worker_groups = "${list( | |
map("instance_type","t2.small", | |
"root_volume_size","8", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:alpine | |
RUN apk update | |
RUN apk add py3-pip | |
RUN pip3 install cfn-lint | |
RUN gem install cfn-nag -v 0.6.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GITHUB_ORG=<YOUR_GITHUB_ORG> | |
#!/bin/bash | |
REPO_PATTERN=$1 | |
if [[ ! -z $REPO_PATTERN ]];then | |
repos=$(gh search repos --match=name ${GITHUB_ORG}/$REPO_PATTERN | grep ${GITHUB_ORG}/$REPO_PATTERN | awk '{gsub("${GITHUB_ORG}/","",$1); print $1}') | |
for repo in $repos | |
do |