This file contains hidden or 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
terraform { | |
backend "gcs" { | |
bucket = "terraform-state-limed" | |
prefix = "terraform/gke" | |
} | |
} | |
locals { | |
project_id = "mozilla-it-service-engineering" |
This file contains hidden or 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
data "aws_vpc" "this" { | |
id = "vpc-09f6a265a28ff8c52" | |
} | |
data "aws_subnet_ids" "public" { | |
vpc_id = data.aws_vpc.this.id | |
filter { | |
name = "tag:Name" | |
values = ["*public*"] |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import json | |
import sys | |
import requests | |
import click | |
from webbrowser import open_new_tab | |
from urllib.parse import quote_plus | |
from os import getenv, environ |
This file contains hidden or 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
#!/usr/bin/env python | |
import boto3 | |
import os | |
try: | |
client = boto3.client('ec2') | |
except Execption as e: | |
print ("Unable to create ec2 client: {}".format(e)) | |
os.exit(1) |
This file contains hidden or 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
version: '3.4' | |
services: | |
influxdb: | |
image: influxdb:latest | |
volumes: | |
- ~/docker/volumes/tick/influx/data:/var/lib/influxdb | |
- ~/docker/volumes/tick/influx/config/:/etc/influxdb | |
environment: | |
INFLUXDB_REPORTING_DISABLED: "true" |
This file contains hidden or 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
#!/usr/bin/env python | |
import csv | |
from argparse import ArgumentParser | |
if __name__ == "__main__": | |
parser = ArgumentParser() | |
parser.add_argument("-f", "--file", dest="csv_file", | |
required=True, help="CVS File to parse") | |
parser.add_argument("-d", "--debug", dest="debug", action='store_true', |
This file contains hidden or 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 alpine:3.9 | |
ENV LIFECYCLED_VERSION="v3.0.2" | |
ENV KUBECTL_VERSION="v1.12.1" | |
ENV TERM=xterm | |
RUN apk add --no-cache bash curl && \ | |
curl -Lf -o lifecycled https://github.com/buildkite/lifecycled/releases/download/v3.0.2/lifecycled-linux-amd64 && \ | |
chmod +x lifecycled && \ | |
curl -Lf -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \ |
This file contains hidden or 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
[Unit] | |
Description=Autoscale Lifecycle Daemon | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
Type=simple | |
Restart=on-failure | |
RestartForceExitStatus=SIGPIPE | |
RestartSec=30s |
This file contains hidden or 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
#!/usr/bin/env python | |
import boto3 | |
import os | |
try: | |
client = boto3.client('ec2') | |
except Execption as e: | |
print ("Unable to create ec2 client: {}".format(e)) | |
os.exit(1) |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
USERNAME=$1 | |
ACCOUNT_ID=$(aws sts get-caller-identity --query "Account" --output text) | |
errexit() { | |
echo "$1" |
NewerOlder