NYKFuel Stagin
i-985b1aa0
/Users/luc/.ssh/nykfuel-luc.pem
- Download the AWS CLI Bundled Installer using wget or curl.
- Unzip the package.
- Run the install executable.
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
If you don't have sudo permissions or want to install the AWS CLI only for the current user, you can use a modified version of the above commands:
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ ./awscli-bundle/install -b ~/bin/aws
$ aws --version
It should look like this:
aws-cli/1.9.18 Python/2.7.10 Darwin/15.2.0 botocore/1.3.18
aws configure
AWS Access Key ID [None]: [YOUR_ACCESS_KEY]
AWS Secret Access Key [None]: [YOUR_SCRET_KEY]
Default region name [None]: [YOUR_REGION_NAME]
Default output format [None]: [DEFAULT_IS_JSON]
aws ec2 get-console-output --instance-id i-985b1aa0
ssh -i "nykfuel-luc.pem" [email protected]