cloudformation-logical2physical
v1.0.4
Published
Get CloudFormation Physical Id of your AWS Resource via the human readable Logical Name
Downloads
7
Maintainers
Readme
Description
Resolve easily the Physical Resource Id with the Cloud Formation Logical Resource Id.
Install
$ npm i --save cloudformation-logical2physical
Usage
//Import
var CloudformationLogical2Physical = require('cloudformation-logical2physical')
var AWS = require('aws-sdk')
//Setup
var CloudFormation = new AWS.CloudFormation();
var L2P = new CloudformationLogical2Physical(CloudFormation, '<<STACK NAME>>')
//Resolve Asynchronously an name (RECOMENDED)
L2P.resolve(process.env.RESOURCELOGICALID, (err, res) => {
console.log(res)
})
//Resolve Synchronously an name
console.log(L2P.resolve('LogicalNameOfMyResource'))