Yet another EC2 instance metadata mocking service.
Mock subset of the EC2 instance metadata service to enable local virtual machine environments to assume IAM roles.
ectou_metadata [--host host] [--port port] [--role-arn role_arn]
version: "2"
services:
app:
image: my-app-that-uses-aws-role:1.0
ports:
- 80:3000
# aws role support
role:
image: quay.io/turner/ectou-metadata
ports:
- 9000:80
environment:
# the role you want your container to assume
ROLE: arn:aws:iam::123456789:role/my-role
# the local profile you want to use to assume the role
AWS_PROFILE: my-profile
volumes:
- $HOME/.aws/credentials:/root/.aws/credentials:ro
networks:
default:
ipv4_address: 169.254.169.254
networks:
default:
driver: bridge
ipam:
config:
- subnet: 169.254.169.0/16
gateway: 169.254.169.1
- boto3 >= 1.2.0
- bottle >= 0.12.0