-
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
sam incorrectly resolve parameters #1360
Comments
@mgorski-mg Thanks for the issue. I think this has to do with how the spec works and not specifically the deploy command. I am going to forward this over to the SAM Translator (Spec) repo for further help. |
@jfuss true that 😅 Thx! |
Any updates or workarounds for this? We have a Lambda that we'd like to schedule in our Production account, but not in our Development account. We're trying to use TemplateConfiguration files in our CodePipeline in order to set this value. This bug is preventing us from disabling the schedule in our Development account. I suppose we could define two Lambdas in our template (one with a schedule and one without) that get conditionally created based on the environment. But that's brittle, error prone, and ugly. |
You can define the scheduler using classic CloudFormation instead of the SAM. |
Thanks for the pointer! Sometimes I forget that I can mix and match CloudFormation and SAM. For reference, this documentation is exactly what I needed. |
I just came across this issue. |
There's been no fix for this after 1 year, but there's a workaround discussed here |
I just tried this today and it is still broken. The workaround by @mgorski-mg continues to work. |
The same on my side. The issue is still here. |
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. |
I have a problem to pass parameters to enable or disable Lambda Scheduler
Template:
I think it's because the template is translated before resolving CF Parameters.
Code from SAM translator:
If the Parameter is not resolved before translation, it's always set State as 'ENABLED'.
Do you have any workaround for it?
SAM CLI version: 0.39.0
The text was updated successfully, but these errors were encountered: