1.0.0 • Published 8 years ago

circleci-aws v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

circleci-aws Build Status

Configure CircleCI with AWS keys

Install

$ npm install --save circleci-aws

Usage

API

var circleCiAws = require('circleci-aws')

circleCiAws.set({
  access_key_id: 'beep',
  secret_access_key: 'boop',
  username: 'u',
  project: 'p',
  circle_token: 'c'
})
.then(() => circleCiAws.get({
  username: 'u',
  project: 'p',
  circle_token: 'c'
}))
.then(console.log)
//=> {access_key_id...}
.then(() => circleCiAws.remove({
  username: 'u',
  project: 'p',
  circle_token: 'c'
}))
.then(console.log)
//=> null

CLI

# set
circleci-aws set --username u --project p --circle-token c --access-key-id beep --secret-access-key boop
# get
circleci-aws --username u --project p --circle-token c
# remove
circleci-aws remove --username u --project p --circle-token c

API

circleCiAws.get(data) -> promise

circleCiAws.set(data) -> promise

circleCiAws.remove(data) -> promise

data

Required
Type: object

An object that always must contain the username, project, and circle_token and will contain access_key_id and secret_access_key when setting new values.

The returned promise will resolve with the parsed response body from Circle. This will be null in all cases except when calling get with an existing keypair.

License

MIT © Ben Drucker