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
$ sam validate
[[E0001: Error found when transforming the template] (Error transforming template: Resource with id [RestApi] is invalid. Property 'Domain.DomainName' is required.) matched 1]
Error: Linting failed. At least one linting rule was matched to the provided template.
$ sam deploy
Waiting for changeset to be created..
Error: Failed to create changeset for the stack: app-dev, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [RestApi] is invalid. Property 'Domain.DomainName' is required.
Expected result:
Both the validation and the deployment are successful.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Hi @bel-gacem, SAM and SAM CLI has some basic intrinsics support, but unfortunately it doesn't cover all cases. Have a look at the SAM issue to check the unsupported intrinsics.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
Hi, looks like the
Domain
property of the serverless api resource does not support!If
statement.Steps to reproduce:
Observed result:
Expected result:
Both the validation and the deployment are successful.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.123.0The text was updated successfully, but these errors were encountered: