https://github.com/ironsource/is-ec2-machine
Detect if current machine is running on AWS EC2.
https://github.com/ironsource/is-ec2-machine
aws aws-ec2 nodejs npm-module npm-package
Last synced: about 1 year ago
JSON representation
Detect if current machine is running on AWS EC2.
- Host: GitHub
- URL: https://github.com/ironsource/is-ec2-machine
- Owner: ironSource
- License: mit
- Created: 2017-12-12T14:10:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T19:02:56.000Z (over 3 years ago)
- Last Synced: 2024-04-27T04:23:12.937Z (about 2 years ago)
- Topics: aws, aws-ec2, nodejs, npm-module, npm-package
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# is-ec2-machine
**Detect if current machine is running on AWS EC2. Inspired by [is-ec2]( https://github.com/dvonlehman/is-ec2), adds theoretical Windows support and does not needlessly spawn a process on Linux.**
## usage
```js
const isEC2 = require('is-ec2-machine')
if (isEC2()) {
console.log('yep')
} else {
console.log('no')
}
```
## install
With [npm](https://npmjs.org) do:
```
npm install is-ec2-machine
```
## license
MIT © ironSource