-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Nested Application parameters are not being passed when running sam local start-api #2949
Comments
Thanks for reporting this. What happens if you only have root template, and you have a parameter to point to ApiGW definition and you pass that parameter outside. Would that succeed to build? |
Closing this because it has been inactive for 24 days. |
|
Description:
Let's expected the current resources:
./template.yml
./templates/nestedTemplateA.yml
I want to be able to put the API Gateway and the Role of the microservice in the root template.yml because all the lambdas that will be nested will use the same basic execution role and the same API Gateway.
The goal of nested the lambdas like that is for the readability. Imagine a service which offer 10 features that each feature have at least 1 lambda per CRUD operation, that's already 40 AWS::Serverless::Function which take about 20 lines with all the properties.
Observed result:
When running
sam local start-api --warm-containers EAGER --skip-pull-image
I get the following errorExpected result:
The expected result is that the !Ref parameters is passed down in the nested stack to be used just as if I would have !Ref it from the template root itself.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.24.1The text was updated successfully, but these errors were encountered: