Skip to content

Instantly share code, notes, and snippets.

@lancehudson
lancehudson / thousandeyes.yml
Created April 22, 2020 05:38
thousand eyes swagger def
openapi: 3.0.0
info:
title: Thousand Eyes API V6
version: 6.0.0
externalDocs:
description: Developer Reference
url: https://developer.thousandeyes.com/v6/
servers:
- url: https://api.thousandeyes.com/v6
description: Thousand Eyes API V6
@lancehudson
lancehudson / export.sh
Created May 4, 2020 18:26
Export all regions with terraforming
#!/usr/bin/env bash
TERRAFORMING="~/.gem/ruby/2.6.0/bin/terraforming"
AWS_PROFILE="dev"
AWS_REGIONS=($(AWS_PROFILE=$AWS_PROFILE aws ec2 describe-regions | jq -r '.Regions[].RegionName'))
COMPONENTS=($($TERRAFORMING help | grep terraforming | grep -v help | awk '{print $2}'))
for REGION in "${AWS_REGIONS[@]}"
do
rm -rf $REGION