-
Notifications
You must be signed in to change notification settings - Fork 220
Add support for CloudFormation intrinsic function for role #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for CloudFormation intrinsic function for role #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @alex-berger 👍
Unfortunately, some linting error occurs. Could you fix those?
Linting issues fixed. |
const _ = require('lodash'); | ||
const BbPromise = require('bluebird'); | ||
|
||
function isIntrinsic(obj) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this function outside module.exports
? Would be good to be inside that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alex-berger
Sorry for the delay response. Thank you for fixing the linting errors.
I have reviewed the code and left one comment for improvements.
And, cloud you add an explanation of this functionality within README so that let users know it
- based on PR serverless-operations#111 - thanks @alex-berger - see serverless-operations#111
Just a quick note that this feature is mentioned in the docs, but the syntax in the docs does not match the syntax shown by @alex-berger and therefore led me astray until I found this. |
This PR adds support for CloudFormation intrinsic functions to the
role
property, such for example the following sytanx is supported:Having this feature in place, it is now possible to use (refer to) IAM roles which are defined in the
Resources
section of theserverless.yml
file.