I hereby claim:
- I am mvanholsteijn on github.
- I am mvanholsteijn (https://keybase.io/mvanholsteijn) on keybase.
- I have a public key ASC8m3WQn3rAaN6rL70h8G5tzhZXjiRrNBqS3heiR9KVego
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Installs and Configures the AWS cloudwatch agent, and sets the default log group name and region | |
# | |
# | |
# You need to add the following policy statement to the machine's IAM role. | |
# | |
# { | |
# "Effect": "Allow", | |
# "Action": [ |
AUTH0_DOMAIN=mvanholsteijn.eu.auth0.com | |
curl -sS https://$AUTH0_DOMAIN/pem | \ | |
openssl x509 -pubkey -noout |
AUTH0_DOMAIN=mvanholsteijn.eu.auth0.com | |
curl -sS https://$AUTH0_DOMAIN/pem | \ | |
openssl x509 -pubkey -noout | \ | |
tr -d '\r' | \ | |
tr '\n' '|' | \ | |
sed -e 's/|/\\n/g' | \ | |
sed -e 's/^/"/' -e 's/$/"/' |
#!/usr/bin/env python | |
# | |
# reports errors on the last stack operations | |
# | |
import sys | |
import boto3 | |
def report_errors(stackname): | |
cfn = boto3.client('cloudformation') |
#!/bin/bash | |
gcloud compute instances delete-access-config $INSTANCE --access-config-name external-nat |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
DOMAIN=${1:-mvanholsteijn.eu.auth0.com} | |
KONG_API=http://localhost:8001 | |
PUBLIC_KEY=$(curl -sS https://${DOMAIN}/pem | openssl x509 -pubkey -noout) | |
[[ -z $PUBLIC_KEY ]] && echo "ERROR: could not retrieve public key of $PUBLIC_KEY" && exit 1 | |
# add user | |
curl -sS -i -X POST $KONG_API/consumers --data username=$DOMAIN |
#!/bin/bash | |
aws ds describe-directories --query 'DirectoryDescriptions[*].{ | |
"schemaVersion": `"1.0"`, | |
"description": join(``, [`Automatic AD domain-join configuration for `, Name, `.`]), | |
"runtimeConfig": { | |
"aws:domainJoin": { | |
"properties": { | |
"directoryId": DirectoryId, | |
"directoryName": Name, | |
"dnsIpAddresses": OwnerDirectoryDescription.DnsIpAddrs |
terraform { | |
required_version = ">= 0.12" | |
} | |
variable project { | |
type = string | |
} | |
provider "google" { | |
project = var.project |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"github.com/binxio/gcloudconfig" | |
"golang.org/x/oauth2/google" | |
"google.golang.org/api/compute/v1" | |
"google.golang.org/api/option" |