Skip to content

Instantly share code, notes, and snippets.

View edjackson-wf's full-sized avatar

Ed Jackson edjackson-wf

View GitHub Profile
@edjackson-wf
edjackson-wf / get_vault_secret.py
Created September 29, 2017 16:17
IAM auth to Hashicorp Vault server from an ECS container
#!/usr/bin/env python3
import base64
import json
import requests
from aws_requests_auth.boto_utils import BotoAWSRequestsAuth
"""
This code will connect from an ECS container to a remote Hashicorp Vault server
and authenticate using the 'iam' auth_type for the AWS auth backend.