Skip to content

Instantly share code, notes, and snippets.

- hosts: aws
gather_facts: false
tasks:
- ansible.mcp.run_tool:
name: get_aws_account_info
register: info
- set_fact:
credentials_token: "{{ (info.content[0].text | from_json)['credentials_token'] }}"
@gravesm
gravesm / tfcloud.md
Created July 31, 2020 14:54
TF remote apply workflows

Notes

  • Does not appear possible to run an apply locally

Open Questions

  • Keep using a mono-repo or switch to one repo per service?
  • Should stage and prod both deploy from master or should there be a long running prod branch?

Workspace Configuration

Two workspaces are created per app and named <app_name>-stage and <app_name>-prod

+++++++++++++
>+++<
[
[>>[-]+<<
>>>>[-]
>[-]
<<<<<-
>-
[->>>+>+<<<<]
>>>>[-<<<<+>>>>]
import io
class S3IO(io.BufferedIOBase):
def __init__(self, s3_obj):
self.obj = s3_obj
self._position = io.SEEK_SET
def tell(self):
return self._position

Keybase proof

I hereby claim:

  • I am gravesm on github.
  • I am gravesmj (https://keybase.io/gravesmj) on keybase.
  • I have a public key ASCFAqsyCUQl5tclKjxlKGqiGus3fISuiWatJJXxOI419go

To claim this, I am signing this object:

<section>
<h1>You are in a maze of twisty containers, all unversioned.</h1>
</section>
<section>
<h2>Kubernetes</h2>
<div>
<ul>
<li>6 pods (adit api, elasticsearch, fedora, nginx, pit, postgres)</li>
<li>Container images stored in google cloud</li>
<li>There's no builtin versioning, so it can be hard to figure out what version of what you have deployed</li>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
from itertools import repeat
import time
import unittest
import click
from click.testing import CliRunner
@click.group()
@gravesm
gravesm / app.js
Created February 23, 2016 21:26
iiif
$(function() {
var map = L.map('map', {
center: [42.3, -72],
zoom: 8
});
var image = L.map('image', {
center: [0, 0],
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Rivitzz!!~</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>