aws-d-metadata ~master
Library to fetch meta data of an ec2 instance from within a vide.d application.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
aws-d-metadata
Helper library to fetch meta data of an ec2 instance from within a vide.d application.
usage
this is a dub compatible package. add it as a dependency in your dub.json
{
...,
"dependencies": {
"aws-d-metadata": ">=0.0.1",
},
}
in your code:
import awsd.metadata;
shared static this()
{
// get a specific MetaData (see amazon docs for all possiblities)
writefln("%s", Ec2GetMetaData("/latest/meta-data/"));
// shorthand method to retrieve instance id
writefln("instance-id: %s", Ec2GetInstanceId());
}
For the possible request urls see amazon docs on "Instance Metadata and User Data" here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html
- ~master released 10 years ago
- Extrawurst/aws-d-metadata
- MIT
- Copyright © 2014, Stephan Dilly
- Authors:
- Dependencies:
- vibe-d
- Versions:
-
0.0.1 2014-Jul-28 ~master 2014-Oct-14 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
196 downloads total
-
- Score:
- 0.6
- Short URL:
- aws-d-metadata.dub.pm