Skip to content

Instantly share code, notes, and snippets.

Soenke Ruempler s0enke

Block or report user

Report or block s0enke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@s0enke
s0enke / manifest.yaml
Created May 14, 2019
Restrict AWS Org to Regions
View manifest.yaml
# Landing Zone Service Control Policies
organization_policies:
...
- name: restrict-to-eu
description: Restrict to EU regions
policy_file: policies/restrict_to_eu_regions.json
#Apply to accounts in the following OU(s)
apply_to_accounts_in_ou:
- core
- applications
@s0enke
s0enke / ansible_playbook.yaml
Created Mar 16, 2017
Ansible Playbook to deploy a CloudFormation stack
View ansible_playbook.yaml
# call me with
# $ ansible-playbook ansible_playbook.yaml
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- cloudformation:
stack_name: "stack_name"
@s0enke
s0enke / gist:97920702cf1cdb4f45411e926ca028a3
Created Feb 10, 2017
cloud-custodian error message when running as Lambda function
View gist:97920702cf1cdb4f45411e926ca028a3
policies:
- name: s3-bucket-check
resource: s3
mode:
role: arn:aws:iam::xxxxx:role/lambda-basic-execution
type: periodic
schedule: "rate(10 minutes)"
@s0enke
s0enke / crashlog.txt
Last active Aug 29, 2015
terraform crash
View crashlog.txt
Crash Log:
```
2015/03/05 22:35:57 [INFO] Terraform version: 0.4.0 dev 9270af6dfad0264bbaf50d91b8bc20e4a65a95eb
2015/03/05 22:35:57 Detected home directory from env var: /home/soenke
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: atlas = /home/soenke/projects/go/bin/terraform-provider-atlas
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: aws = /home/soenke/projects/go/bin/terraform-provider-aws
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: cloudflare = /home/soenke/projects/go/bin/terraform-provider-cloudflare
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: cloudstack = /home/soenke/projects/go/bin/terraform-provider-cloudstack
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: consul = /home/soenke/projects/go/bin/terraform-provider-consul
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: digitalocean = /home/soenke/projects/go/bin/terraform-provider-digitalocean
View php_equality_table.php
<?php
$values = array(
'true' => true,
'false' => false,
'1' => 1,
'0' => 0,
'-1' => -1,
'"true"' => "true",
'"false"' => "false",
'"1"' => "1",
@s0enke
s0enke / elasticache_replication_group.py
Created Dec 21, 2014
Skeleton of an Ansible module for ElastiCache replication groups
View elasticache_replication_group.py
#!/usr/bin/python
import sys
import os
import time
try:
import boto
from boto.elasticache.layer1 import ElastiCacheConnection
from boto.regioninfo import RegionInfo
@s0enke
s0enke / index.md
Last active Sep 23, 2016
You build it, you run it.
View index.md

"Moreover, people with a limited action repertoire often impose old categories to classify what they see and mislabel unfamiliar new problems as familiar old ones so that they can act on them. For example, if firms traditionally decouple authority from responsibility and hold frontline people responsible for outcomes but don’t give them the authority to ensure those outcomes, this limited way of working may well be imposed mindlessly on new fast-moving situations where high performance is possible only when responsibility and authority coincide. There’s more than a grain of truth to the saying that when all you have is a hammer, every problem looks like a nail."

-- Managing the unexpected

You can’t perform that action at this time.