Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ For more detail, type


== Dummy YAML
If you want to access meta-data or user-data not on EC2 Instance like on it,
make one of these files
Use a Dummy YAML file to mimic meta-data or user-data similiar to an EC2 Instance

You can make one of these files:
./config/ec2_metadata.yml
./ec2_metadata.yml
~/ec2_metadata.yml
/etc/ec2_metadata.yml

Dummy YAML file must be like output of ec2-metadata on EC2 instance.
You can also specify the path to a file by defining the `EC2_METADATA_DUMMY_YAML` environment variable
$ export EC2_METADATA_DUMMY_YAML=/path/to/dummy/yaml/file.yml

The content of the Dummy YAML file must be like the output of ec2-metadata on an EC2 instance.
You can export it on EC2 instance like this:
$ ec2-medatata > ec2_metadata.yml
$ cp ec2_metadata.yml /path/to/dir/for/non/ec2/instance
Expand Down