An open API service indexing awesome lists of open source software.

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.

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