Novelty Plastic Moustache

aws-arn-parser

1.0.0 • Public • Published

aws-arn-parser

Parser for Amazon Resource Name strings

Build Status

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

install

npm i aws-arn-parser

Downloadsweekly downloads

1,600

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability