-
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
AutoPublishAlias not accepting !If and conditions #1154
Comments
Thanks for reporting this! SAM doesn't support Please +1 on the feature to help with prioritization. |
@keetonian I also spotted this on the
I tried |
@mcintyre94 Open a new one. It looks to me like
|
I am still having the same issue 3 years later. I don't know why this issue got closed... It doesn't seem to be fixed. I think implementing a way to use conditionals in a SAM template should be a basic function that is supported. smh |
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'm trying to create a SAM template to use in multiple development stages.
In some stages, I have to use AutoPublishAlias (production stages); in other stages (like development or test) I don't need and I don't whant AutoPublishAlias.
But, if I use conditions to set the property
, I have this error:
Resource with id [HelloWorldFunction] is invalid. Alias name is required to create an alias
My solution for now is to use two different SAM files, but in this project we plan to have from 40 to 60 lambda functions and can be hard to maitain.
The text was updated successfully, but these errors were encountered: