@haribodev/aws-ec2-profiles
Usage
$ npm install -g @haribodev/aws-ec2-profiles
$ aep COMMAND
running command...
$ aep (-v|--version|version)
@haribodev/aws-ec2-profiles/3.1.3 linux-x64 node-v12.22.8
$ aep --help [COMMAND]
USAGE
$ aep COMMAND
...
Commands
aep accounts [ACTION]
aep configure
aep connect
aep help [COMMAND]
aep list
aep servers [ACTION]
aep update
aep accounts [ACTION]
Display registered AWS accounts
USAGE
$ aep accounts [ACTION]
ARGUMENTS
ACTION (add|remove|edit) Add, remove or edit an account
OPTIONS
-d, --detail Show extra account details
DESCRIPTION
Display registered AWS accounts
See code: src/commands/accounts.js
aep configure
Configure the CLI
USAGE
$ aep configure
DESCRIPTION
Add accounts and customise the CLI tool. This command should be used after package updates.
See code: src/commands/configure.js
aep connect
Connect using SSH to an EC2 instance
USAGE
$ aep connect
OPTIONS
-a, --address=address Instance Address
-d, --directory=directory Override pem file directory
-i, --index=index Instance index
-k, --key=key Override pem file name
-n, --name=name Instance name
-p, --password Ask for password
-u, --username=username Override connection username
DESCRIPTION
Connect to an EC2 instance using either the instance index, name or address.
Ability to override username and/or pem directory
See code: src/commands/connect.js
aep help [COMMAND]
display help for aep
USAGE
$ aep help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
aep list
Display EC2 instances
USAGE
$ aep list
OPTIONS
-a, --account=account
[default: all] Only get instances from a specific account(s)
-m, --managed=aws|self
[default: all] Only get instances under a specific management(s)
-r,
--region=us-east-1|us-east-2|us-west-1|us-west-2|ap-south-1|ap-northeast-1|ap-northeast-2|ap-southeast-1|ap-southeast-
2|ca-central-1|eu-central-1|eu-west-1|eu-west-2|eu-west-3|eu-north-1|sa-east-1
[default: all] Only get instances in a specific region(s)
-s, --state=pending|running|stopping|stopped|shutting-down|terminated
[default: all] Only get instances of in a specific state(s)
DESCRIPTION
Gathers up to date EC2 instance data and displays summaries in a table
See code: src/commands/list.js
aep servers [ACTION]
Register and degregister self managed servers
USAGE
$ aep servers [ACTION]
ARGUMENTS
ACTION (add|remove|edit) Add, remove or edit a self managed server
DESCRIPTION
Register and degregister self managed servers
See code: src/commands/servers.js
aep update
Update security groups with your new public IP
USAGE
$ aep update
OPTIONS
-f, --force=force
Force change of a rule from one IP to another. This doesn't have to be your IP
-r,
--region=us-east-1|us-east-2|us-west-1|us-west-2|ap-south-1|ap-northeast-1|ap-northeast-2|ap-southeast-1|ap-southeast-
2|ca-central-1|eu-central-1|eu-west-1|eu-west-2|eu-west-3|eu-north-1|sa-east-1
[default: all] Only update security groups in a specific region(s)
DESCRIPTION
Checks if your public IP has changed and updates relevant AWS security groups
See code: src/commands/update.js