# rotate-aws-key

Latest version **1.0.1** (published 2023-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install rotate-aws-key
pnpm add rotate-aws-key
yarn add rotate-aws-key
bun add rotate-aws-key
```

Provides the command `rotate-aws-key`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-03-02 |
| First published | 2023-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | safinn |
| Maintainers | safinn |

## Links

- npm: https://www.npmjs.com/package/rotate-aws-key
- Repository: https://github.com/safinn/rotate-aws-key
- Issues: https://github.com/safinn/rotate-aws-key/issues
- npm.io page: https://npm.io/package/rotate-aws-key

## Dependencies (6)

- [date-fns](https://npm.io/package/date-fns.md) ^2.29.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [picocolors](https://npm.io/package/picocolors.md) ^1.0.0
- [@clack/prompts](https://npm.io/package/@clack/prompts.md) ^0.6.1
- [@aws-sdk/client-iam](https://npm.io/package/@aws-sdk/client-iam.md) ^3.279.0
- [@aws-sdk/credential-providers](https://npm.io/package/@aws-sdk/credential-providers.md) ^3.279.0

## Recent versions

- 1.0.1 (latest) — 2023-03-02
- 1.0.0 — 2023-03-02

## README

<p align="center">
  <a href="https://npmjs.com/package/rotate-aws-key"><img src="https://img.shields.io/npm/v/rotate-aws-key.svg" alt="npm package"></a>
  <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/npm/dm/rotate-aws-key" alt="npm downloads"></a>
</p>

# rotate-aws-key 🔄

> Rotate AWS access keys.

- Create new and delete old AWS access keys.
- Replaces the key in the AWS credentials file.
- Optionally replace the key in a env file.

### Usage

```
npx rotate-aws-key
```

By default, `rotate-aws-key` attempts to rotate the `default` profile access key in the AWS credentials file normally found at `~/.aws/credentials`.

### Options

| Flags          | Description                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------ |
| -o, --output   | Print the new access keys generated in the console                                                                       |
| -p, --profiles | Allows choosing up to 2 profiles in the credentials file to rotate                                                       |
| -e, --env      | Replaces access key environment variables in a provided file defaulting to `./.env`. Only if 1 profile is being rotated. |

---
_Source: https://npm.io/package/rotate-aws-key · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
