other necessary files included. cmd+alt+b will select the line and make it a full comment block
awk '{print "#" $0}' *.tf
#!/usr/bin/env python3 | |
import argparse | |
import boto3 | |
import json | |
import os | |
from datetime import datetime | |
parser = argparse.ArgumentParser( |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
restartPolicy: Always | |
containers: |
#!/bin/bash -e | |
# run with | |
# git clone https://gist.github.com/a43c1352d3ddc84f61af43bf38661beb.git | |
# bash ./a43c1352d3ddc84f61af43bf38661beb/update-terraform-module.sh | |
git clone https://github.com/rhythmictech/terraform-terraform-template.git tmp | |
rm -rf .github bin | |
mv tmp/.github .github |
#!/bin/bash | |
helm list -A | while read line; do | |
linearray=($line) | |
release=${linearray[0]} | |
namespace=${linearray[1]} |
import datetime | |
from datetime import timedelta, date | |
def test_backfill(): | |
numdays = 720 | |
base = datetime.datetime.today() | |
date_list = [base - datetime.timedelta(days=x) for x in range(numdays)] | |
with open('mahdates.csv', 'w') as f: | |
for date in date_list: |
#!/bin/env python3 | |
""" | |
Script to turn all the SSM parameters in one region into terraform resources | |
it can also turn them into JSON with get_parameters_with_values_as_json() | |
Use different regions with the env var AWS_DEFAULT_REGION | |
ie for Northern Cali use: | |
export AWS_DEFAULT_REGION=us-west-1 | |
""" |
#!/bin/bash | |
terraform-config-inspect --json | jq -r '.variables | keys | .[]' | sort | awk '{printf $1 " = var." $1 "\n"}' |