Skip to content

Instantly share code, notes, and snippets.

View marcgascon's full-sized avatar

Marc Gascon marcgascon

  • Wuaki.tv
  • Barcelona
View GitHub Profile
@marcgascon
marcgascon / aurora.tf
Created August 12, 2019 20:44
Creates an aurora cluster by default. It is retrieving the password from AWS secrets manager, so it assumes that you have one secret called db-passwords created there
terraform {
required_version = ">= 0.12.2"
required_providers {
aws = "~> 2.23"
}
}
provider "aws" {
region = "eu-west-1"
}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 expandtab
import sys, os, re
from time import strptime
__title__ = "readfile"
__version__ = "0.1"
@marcgascon
marcgascon / gist:4b4a151c2c7435402464c13f94f4b528
Created August 10, 2019 17:04
Namespace, Deployment and Service in K8s
---
apiVersion: v1
kind: Namespace
metadata:
name: web
labels:
name: web
---
apiVersion: v1
kind: Service