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
@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.
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.
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.
You need to define AWS::Events::Rule and AWS::Lambda::Permission.
Then you can use parameters properly.
You can define the scheduler using classic CloudFormation instead of the SAM.
You need to define AWS::Events::Rule and AWS::Lambda::Permission.
Then you can use parameters properly.
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.
Activity
jfuss commentedon Jan 3, 2020
@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.
mgorski-mg commentedon Jan 3, 2020
@jfuss true that 😅 Thx!
[-]sam deploy incorrectly resolve parameters[/-][+]sam incorrectly resolve parameters[/+]soccerboymalloy-patriot commentedon Jun 19, 2020
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.
mgorski-mg commentedon Jun 19, 2020
You can define the scheduler using classic CloudFormation instead of the SAM.
You need to define
AWS::Events::RuleandAWS::Lambda::Permission.Then you can use parameters properly.
soccerboymalloy-patriot commentedon Jun 22, 2020
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.
diegogurpegui commentedon Sep 26, 2020
I just came across this issue.
Any update or progress? or the solution at the moment is still the one suggested by @mgorski-mg?
RichieRunner commentedon Jan 19, 2021
There's been no fix for this after 1 year, but there's a workaround discussed here
ckabalan commentedon Sep 21, 2021
I just tried this today and it is still broken. The workaround by @mgorski-mg continues to work.
Yop-La commentedon Apr 26, 2022
The same on my side. The issue is still here.
hoffa commentedon Oct 17, 2022
You might be able to get this to work by adding
AWS::LanguageExtensionstoTransformas such:AWS::LanguageExtensionsresolves intrinsic functions if the value is known whenTransforms are run.See #2533 for more information.
hoffa commentedon Nov 3, 2022
Closing in favor of #2533.