You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am trying to define Serverless API resource. But having trouble in defining location of swagger specification file using function ImportValue.
Steps to reproduce the issue:
I am not able to define AWS::Serverless::Api resource having nested function ImportValue in Location. I have tried following three ways, none of them work.
Note: Stack parameters are defined properly and export value from other stack exists. Not showing them here for brevity reason.
This would be a CloudFormation question because SAM does not explicitly parse any of the ImportValue notations. My guess is that nesting import value might not work. I am not sure
I can create other resource types and output expected value in the output section of my template using nested import value. I even tried using Join function having nested Import value.
This is probably something specific to the Fn::Include, which is also a transform. Unfortunately we are focused on the SAM Transform here and don't have insights into Fn::Include.
Description:
I am trying to define Serverless API resource. But having trouble in defining location of swagger specification file using function ImportValue.
Steps to reproduce the issue:
I am not able to define
AWS::Serverless::Api
resource having nested functionImportValue
in Location. I have tried following three ways, none of them work.Note: Stack parameters are defined properly and export value from other stack exists. Not showing them here for brevity reason.
Cloudformation shows following error.
FAILED - The value of parameter Location under transform Include must resolve to a string, number, boolean or a list of any of these.
However, if I do not use
ImportValue
it works with a nestedFn::Sub
Is it function ImportValue that cannot be used under function Sub?
or
Is it yaml format that does not support ImportValue under a Sub?
The text was updated successfully, but these errors were encountered: