What you get is a simple server that reads in a json (e.g. example.json
) from EC2 Metadata and allows to use it local.
You can install go with
brew install go
This project requires Go to be installed. You can also use the Golang Docker to build the binary.
Running is it should be as simple as:
$ make
$ make restore
$ make build
The currently supported metadata endpoints:
- http://169.254.169.254/
- http://169.254.169.254/latest/meta-data/
- http://169.254.169.254/latest/user-data/
- http://169.254.169.254/latest/dynamic/
Displays the available options of the server.
Displays the current version of the server.
https://github.com/threadwaste/finto/wiki/Using-network-redirection
sudo ifconfig lo0 alias 169.254.169.254
docker run --rm -p 80:8111 -v `pwd`/ec2-metadata.json:/ec2-metadata.json pixelmilk/ec2-metadata --data /ec2-metadata.json