-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
AWS::Serverless::Api Property "RestApiId" does not support If, Map Functions #1470
Comments
Thanks for the feature request! We have passed this along to our product team for possible prioritization. Please +1 on the feature to help with prioritization. |
I was going crazy with this error until found this issue... Thanks for looking into it! |
I have the same issue. |
I am unable to import an exported RestApi from a CFN template to a SAM template (which is CFN under the hood) Stack A - excerpt Outputs: Stack B - excerpt MyLambda: Error Message -> |
hi @si3mshady Have you figured it out on how to use a restAPI resource over cross templates? |
I could setup an api in yaml and reference it in my lambda using RestApiId as shown below:
|
Hi any new information about this problem? Is it available to use an api in cross template? |
You might be able to get this to work by adding Transform:
- AWS::LanguageExtensions
- AWS::Serverless-2016-10-31
See #2533 for more information. |
Closing in favor of #2533. |
Description:
The
AWS::Serverless::Api
does not support particular functions such asFn::If
andFn::FindInMap
. My use case is that particularAWS::Serverless::Function
resources my SAM template may have events coming from different API Gateways depending on a parameter I pass in.Steps to reproduce the issue:
Given the following template:
Run the command:
sam validate --debug
Observed result:
The following result is returned:
Expected result:
AWS::Serverless::Function
would be associated with the given API Gateway returned by theIf
orFindInMap
function.The text was updated successfully, but these errors were encountered: