CLI prompts to select AWS resources via aws-sdk
npm i --save @jcoreio/aws-select-cli-prompts
import { selectEC2Instance } from '@jcoreio/aws-select-cli-prompts'
Prompts the user to select an EC2 Instance. Returns a promise that resolves to the selected
AWS.EC2.Instance
.
The EC2 API instance to use.
Additional filters to use.
The maximum number of EC2 instances to fetch.
If true
, load recent instances the user has selected in the past (from ~/.aws-select-cli-prompts/recents.json
)
and present them when the filter text is empty. After the user makes a selection it will be saved tot he recents
file.
import { selectEBSSnapshot } from '@jcoreio/aws-select-cli-prompts'
Prompts the user to select an EBS Snapshot. Returns a promise that resolves to the selected
AWS.EC2.Snapshot
.
The EC2 API instance to use.
Additional filters to use.
The maximum number of snapshots to fetch.
If true
, load recent instances the user has selected in the past (from ~/.aws-select-cli-prompts/recents.json
)
and present them when the filter text is empty. After the user makes a selection it will be saved tot he recents
file.