-
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
Using a !If on and Event Timer for Enabled is always True #2150
Comments
Also tried a |
I think it isn't a bug in SAM CLI it's a bug in https://github.com/awslabs/serverless-application-model |
Thanks @timoschilling will open up an issue there and link it back here. |
Moved to -->. aws/serverless-application-model#1676 |
Closing in favor of aws/serverless-application-model#1676 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have a Condition in my SAM Template to check the ENV Parameter it True. I am trying to pass that into a Timer Event to either be true or false under
Enabled
. It always sends it astrue
. Setting that value to eithertrue
orfalse
works as expected, but usingEnabled: !If [ProdEnv, "false", "false"]
orEnabled: !If [ProdEnv, "true", "false"]
always sets it to true and enabled.Steps to reproduce
SAM CLI, version 1.0.0
snipped template:
Observed result
The ENV is set to be stage, other !If work as expected above however the Timer is set to be Enabled.
Now if I skip the !If and just pass a
true
orfalse
to Enabled it works as expected. So I am not sure if this is just not supported for the Timer or if there is a problem with the transform.Expected result
I expected the Timer to have been set to
false
.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.0.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: