https://github.com/sc5/aws-cloudformation-lookup
Lookup resources from AWS Cloudformation stack
https://github.com/sc5/aws-cloudformation-lookup
Last synced: 10 days ago
JSON representation
Lookup resources from AWS Cloudformation stack
- Host: GitHub
- URL: https://github.com/sc5/aws-cloudformation-lookup
- Owner: SC5
- License: mit
- Created: 2015-12-06T12:08:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T09:37:01.000Z (over 10 years ago)
- Last Synced: 2025-02-04T19:17:48.285Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-cloudformation-lookup NPM module
A module for loading the resources from an AWS cloudformation stack.
The module has a function
loadStack(stackName, function(err, stackResources))
which returns all resources from the stack with the following properties:
* LogicalResourceId : logical resource name used in cloudformation
* PhysicalResourceId : actual resource name as installed
* Arn : Arn to resource
* ResourceType: type of resource
## Usage
```javascript
var cloudLookup = require('aws-cloudformation-lookup');
cloudlookup.loadStack('MyStack', function(err, stackResources) {
var arn = stackResources['myEC2Instance'].Arn;
...
});
```
## Release History
* 2015/12/07 - v0.1.3 - Fixes to Arns
* 2015/12/06 - v0.1.0 - Initial version of module
## License
Copyright (c) 2015 [SC5](http://sc5.io/), licensed for users and contributors under MIT license.
https://github.com/SC5/aws-cloudformation-lookup/blob/master/LICENSE
[](https://bitdeli.com/free "Bitdeli Badge")