# @blinkmobile/aws-profile-management

> Helper classes for dealing with multiple AWS Keys

Latest version **1.0.1** (published 2016-05-19) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @blinkmobile/aws-profile-management
pnpm add @blinkmobile/aws-profile-management
yarn add @blinkmobile/aws-profile-management
bun add @blinkmobile/aws-profile-management
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-05-19 |
| First published | 2016-05-11 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Simon Dobie |
| Maintainers | blinkmobile |

## Links

- npm: https://www.npmjs.com/package/@blinkmobile/aws-profile-management
- npm.io page: https://npm.io/package/@blinkmobile/aws-profile-management

## Dependencies (3)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.3.10
- [lodash.memoize](https://npm.io/package/lodash.memoize.md) ^4.0.3
- [@blinkmobile/blinkmrc](https://npm.io/package/@blinkmobile/blinkmrc.md) 1.1.0

## Recent versions

- 1.0.1 (latest) — 2016-05-19
- 1.0.0 — 2016-05-12
- 0.0.1 — 2016-05-11

## README

# AWS Profile Management

A module that handles [AWS Shared Ini credentials](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html) profile names with [.blinkmrc.json](https://github.com/blinkmobile/blinkmrc.js)

It is meant to be used by our CLI tools

## Installation

`npm i --save @blinkmobile/aws-profile-management`

## Documentation

The source is jsdoc commented, HTML documentation can be generated by running `npm run make-docs` inside the modules folder.

There is no validation that the profile exists in `~/.aws/credentials`

### Quickstart

```javascript
const awsProfileManager = require('@blinkmobile/aws-profile-management');
console.log(awsProfileManager.profile.name); // 'default'

awsProfileManager.profile.read().then(profile => {
  console.log(profile); // value of the profile property in .blinkmrc.json

  return awsProfileManager.awsFactory(profile); // AWS SDK using the selected profile
});

awsProfileManager.profile.write('my-profile').then(cfg => {
  console.log(cfg); // the entire JSON structure held in .blinkmrc.json, with the profile property updated to be 'my-profile'
});

awsProfileManager.profile.show(); // value of the profile property in .blinkmrc.json
```

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