jeremydaly / serverless-cloudside-plugin

Serverless plugin for using cloudside resources during local development
47 stars 16 forks source link

Added support for `Fn::ImportValue` #8

Open nlang opened 4 years ago

nlang commented 4 years ago

I needed to reference a resource that is exported by another stack, so I added that functionality. It uses CloudFormations listExports function to substitute exported values from other stacks. I also updated the README.

E.g.

    ...
    environment:
      FOO_ENV_VAR:
        'Fn::ImportValue': ExportNameFromAnotherStack

Merging and publishing a new version would be highly appreciated. Please let me know if I can change or clarify things.