This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |