ryansb / cfn-wrapper-python

Python decorator for making Lambda-backed CloudFormation resources
MIT License
71 stars 13 forks source link

Support for Data (GetAtt values) in response #6

Closed ComaVN closed 5 years ago

ComaVN commented 5 years ago

Currently, it doesn't seem to be possible to let a custom resource return attributes that can be used by Fn::GetAtt, or as output of the stack. Would you be interested in a PR for that?

adamchainz commented 5 years ago

It's actually currently possible, just return in Data like the sample: https://github.com/ryansb/cfn-wrapper-python/blob/master/cfn_resource.py#L101

ComaVN commented 5 years ago

Ah I see it does work. I tried that incorrectly, disregard this.