-
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
Using parameters in SAM file in DefinitionUri #101
Comments
You should use |
I don't see |
* feat: SAM support for /tmp config (#87) * Add EphemeralStorage field Add EphemeralStorage as a new option when creating SAM templates. Add functionality to transform SAM templates with EphemeralStorage to Cloudformation templates. Add /translate tests for new field * Add EphemeralStorage to global configs * Add EphemeralStorage to global configs * Add testing for functions with intrinsic refs, add EphemeralStorage to versions Co-authored-by: Kevin Weng <[email protected]> * chore: add integration test for /tmp (#101) * Add integration test for /tmp Also edit basic_function_event_destinations template file to avoid deprecated runtime error * Add integration test for /tmp Also edit basic_function_event_destinations template file to avoid deprecated runtime error * Revert changes to template runtime and use getters in test_function_with_ephemeral_storage. Delete duplicated test * Revert runtime changes Co-authored-by: Kevin Weng <[email protected]> Co-authored-by: Kevin Weng <[email protected]> Co-authored-by: Kevin Weng <[email protected]>
Hi, FYI in my SAM file this works:
StageName: !Ref "Env"
DefinitionUri: "swagger-dev.yml"
But this doesn't work:
StageName: !Ref "Env"
DefinitionUri: !Sub "swagger-${Env}.yml"
And this also doesn't work:
StageName: !Ref "Env"
DefinitionUri:
Fn::Join:
- ''
- - "swagger-"
- !Ref: "Env"
- ".yml"
The error I get is:
"FAILED - Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [Api] is invalid. 'DefinitionUri' requires Bucket and Key properties to be specified"
My parameter is defined as:
Parameters:
Env:
Description: The environment id.
Type: String
ConstraintDescription: Can contain only one of the supported environment ids.
The text was updated successfully, but these errors were encountered: