Skip to content

turnerlabs/ectou-metadata

 
 

Repository files navigation

ectou-metadata

Yet another EC2 instance metadata mocking service.

Docker Repository on Quay

Goals

Mock subset of the EC2 instance metadata service to enable local virtual machine environments to assume IAM roles.

Usage

ectou_metadata [--host host] [--port port] [--role-arn role_arn]

Docker

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    

Dependencies

  • boto3 >= 1.2.0
  • bottle >= 0.12.0

About

Yet another EC2 instance metadata mocking service.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%