DEPRECATED-lambda-cfn icon indicating copy to clipboard operation
DEPRECATED-lambda-cfn copied to clipboard

Reference other resources in the template

Open willwhite opened this issue 9 years ago • 1 comments

Given the following example:

var lambdaCfn = require('lambda-cfn');

module.exports = lambdaCfn(
  [
    'myHandler.js',
  ],
  {
    "AWSTemplateFormatVersion": "2010-09-09",
    "Description": "my stack",
    "Resources": {
       "AutoScalingGroup": { ... }
    }
  }
);

How would I go about referencing AutoScalingGroup inside my rule configuration? Specifically, I'd like make the physical id of AutoScalingGroup available to the function. I'm currently only seeing a way to do this with a parameter.

willwhite avatar May 11 '16 10:05 willwhite

I think the way to do this would be to allow the StreambotEnv to be set/updated by the rule configuration.

zmully avatar May 13 '16 14:05 zmully