https://github.com/ironsource/node-ec2-userdata
Get the user data from an ec2 machine's hypervisor web interface, programmatilly or via command line
https://github.com/ironsource/node-ec2-userdata
Last synced: about 1 year ago
JSON representation
Get the user data from an ec2 machine's hypervisor web interface, programmatilly or via command line
- Host: GitHub
- URL: https://github.com/ironsource/node-ec2-userdata
- Owner: ironSource
- License: mit
- Archived: true
- Created: 2015-06-26T22:24:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-26T22:50:35.000Z (about 11 years ago)
- Last Synced: 2025-03-30T16:44:38.411Z (about 1 year ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ec2-userdata
Get the user data from an ec2 machine's hypervisor web interface, programmatilly or via command line
## Programmatically
```
> npm install --save ec2-userdata
```
```javascript
var ec2UserData = require('ec2-userdata')
ec2UserData(function (err, data) {
})
```
### override hypervisor url
```javascript
var ec2UserData = require('ec2-userdata')
ec2UserData({ hypervisorUrl: 'http://lalala' }, function (err, data) {
})
```
## Command line
```
> npm install -g ec2-userdata
> ec2-userdata
```