aws-arn-parser

Parser for Amazon Resource Name strings

npm install aws-arn-parser
1 downloads in the last week
2 downloads in the last month

aws-arn-parser

Does what it says on the tin! Parsers an Amazon Resource Name and gives it back as object. NOTE: this module is in early days, at some point later I might make it actually validate and normalize the returned object, or completely change how it works

example

thing.js

var parser = require('aws-arn-parser');
var myAwsString = "arn:aws:iam::123456789012:server-certificate/division_abc/subdivision_xyz/ProdServerCert";

var arn = parser(myAwsString);

console.log(arn);

and when we run it

$ node thing.js
{ arn: 'arn',
  aws: 'aws',
  service: 'iam',
  region: '',
  namespace: '123456789012',
  relativeId: 'server-certificate/division_abc/subdivision_xyz/ProdServerCert' }

install

With npm do:

npm install aws-arn-parser

license

MIT

Build Status

npm loves you