Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouse committed Jan 22, 2019
1 parent d23d0ee commit 381facf
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ Automated build on Docker Hub

[![DockerHub Badge](http://dockeri.co/image/jtbouse/aws-cli)](https://hub.docker.com/r/jtbouse/aws-cli/)

## Install

To use `aws` as a drop-in replacement for calls to the aws-cli, use one of the following methods:

Add an alias to your shell:

```
alias aws='docker run --rm -t $(tty &>/dev/null && echo "-i") -v ${HOME}/.aws:/root/.aws -v "$(pwd):/project" jtbouse/aws-cli'
```

Or drop it into your path named `aws`:

```
$ curl -o /usr/local/bin/aws https://raw.githubusercontent.com/jtbouse/aws-cli/master/aws
$ chmod a+x /usr/local/bin/aws
```

## Usage

Configure:
Expand All @@ -40,27 +57,9 @@ Start SSM Session:
$ aws ssm start-session --target instance-id-to-connect
```

## Install

To use `aws` as a drop-in replacement for calls to the aws-cli, use one of the following methods:

Add an alias to your shell:

```
alias aws='docker run --rm -t $(tty &>/dev/null && echo "-i") -v ${HOME}/.aws:/root/.aws -v "$(pwd):/project" jtbouse/aws-cli'
```

Or drop it into your path named `aws`:

```
$ curl -o /usr/local/bin/aws https://raw.githubusercontent.com/jtbouse/aws-cli/master/aws
$ chmod a+x /usr/local/bin/aws
```

## Maintenance

- The Docker image build & publish is automated by DockerHub for master commits and tags.
- The awscli and s3cmd packages have handcoded versions in the Dockerfile that need to be bumped manually.

## References

Expand Down

0 comments on commit 381facf

Please sign in to comment.