Skip to content

Temporary federated Redshift authentication using AWS Parameter Store and IAM roles

Notifications You must be signed in to change notification settings

gopuff/redshift-authorizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redshift Authorizer

Overview

This package utilizes AWS SSM Parameter Store and federated authentication to Redshift via IAM to retrieve temporary and secure Redshift credentials. It then initiates a connection to Redshift using the pg-promise library.

Requirements

Usage

const RedshiftAuthorizer = require('redshift-authorizer')

// Following suggested convention, prefix environment to your parameter names
const prefix = `/${process.env.NODE_ENV || 'production'}`

const db = RedshiftAuthorizer.getDbConnection(`${prefix}/redshift`)
  .then(db => db.any('SELECT usesysid FROM pg_user LIMIT 1', [true]))
  .then(console.log)
  .catch(console.error)

Resources

Contributors

goPuff

About

Temporary federated Redshift authentication using AWS Parameter Store and IAM roles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published