-
Notifications
You must be signed in to change notification settings - Fork 196
examples for using intrinsic functions #31
Comments
Hi Ian, GoFormation currently uses intrinsic function resolution to resolve parameters present within the scope of the template. This allow GoFormation to be able to work with this template - excerpt: Parameters:
FunctionTimeout:
Type: Number
Default: 20
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
...
Timeout:
Ref: FunctionTimeout Can you please elaborate more on what you mean by the cloudformation package seems to have no concept of them? What would you like to see as an example? |
@pesama Thanks! I think I get what you're referring to. Perhaps a README example might be a good idea? Im going to close this, cheers. |
@pesama Pardon, I spoke too soon! To answer your question, I was referring to there being no obvious equivalent to something like this. As in, when building resources that make use of Ref for example, how should that be specified in the resource struct? The example you gave is yaml, determining how would you build that same resource definition from AWSServerlessFunction quickly was the specific question. |
Thanks for the clarification @iancoffey. Currently, GoFormation's functionality for creating a template from a struct will use only direct values on the properties. Hence, I'm reopening this issue and tagging it as feature request. |
Yeah I'm having trouble with this as well. I'm new to go, so obviously this syntax won't work. But how would I pass a Sub or Ref to this env var to this using goformation?
|
@pesama Thanks for accepting this as feature request. Will be great to see it working. Can you give some estimate when-ish to expect this to be addressed? Thank you, |
@pesama coming up on a year for this request, is there any ETA? Not being able to specify |
I've just created a PR to add this functionality - it will be merged as soon as the travis ci build/tests finish. |
This is now merged - check out the examples in the README for details of how to use |
It would be great to have an example or two around building resources that make use of the intrinsic functions inside templates. The cloudformation package seems to have no concept of them. Im unclear how to achieve this, but perhaps Im missing something.
The text was updated successfully, but these errors were encountered: