From 8c71c62510aa1c9ac85fe8a602bc440f37969744 Mon Sep 17 00:00:00 2001 From: Vasanth Elavarasan Date: Thu, 23 Oct 2014 23:15:50 -0700 Subject: [PATCH] Add the use of EC2_METADATA_DUMMY_YAML env variable to README --- README.rdoc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 2547a81..2e7a8ac 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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