Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdehaan/awstypes
Get AWS EC2 instance types and AWS regions
https://github.com/pdehaan/awstypes
Last synced: 17 days ago
JSON representation
Get AWS EC2 instance types and AWS regions
- Host: GitHub
- URL: https://github.com/pdehaan/awstypes
- Owner: pdehaan
- License: unlicense
- Created: 2015-03-06T17:39:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-06T18:11:34.000Z (almost 10 years ago)
- Last Synced: 2024-04-26T10:05:16.979Z (8 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# awstypes
Get AWS EC2 instance types and AWS regions.
## Sources:
-
-## API:
- `regions` - An object containing AWS zones (as keys) and friendly names (as values).
- `getRegions()` - A function which returns the AWS `regions` as an array of zone codes, or an object containing zone and friendly names.
- `types` - An array containing EC2 instance types.
- `getTypes()` - A function which returns EC2 instance types (optionally filtered by instance type prefix.## Usage:
### `getRegions()`
- `getRegions()` - Return all the region codes and names.
- `getRegions(true)` - Return only the region codes.
- `getRegions(false)` - Return all the region codes and names.### `getTypes()`
- `getTypes()` - Returns all EC2 instance types.
- `getTypes([])` - Returns all EC2 instance types.
- `getTypes('c3.')` - Return only c3.* instance types.
- `getTypes('m3.', 'c4.')` - Return m3.* and c4.* instance types.
- `getTypes(['m3.', 'c4.'])` - Return m3.* and c4.* instance types.