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
APIGateway:
Type: AWS::Serverless::ApiProperties:
StageName: ProdDomain:
!If
- CreateBasePath
- DomainName: testCertificateArn: testEndpointConfiguration: REGIONALRoute53:
HostedZoneId: test
- !Ref"AWS::NoValue"Auth:
Authorizers:
LambdaTokenAuth:
FunctionPayloadType: TOKEN # OPTIONAL; Defaults to 'TOKEN' when `FunctionArn` is specifiedFunctionArn: !GetAtt JWTAuthorizerFunction.ArnIdentity:
ReauthorizeEvery: 0
The deploy fails with: Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Applica
tion Specification document. Number of errors found: 1. Resource with id [APIGateway] is invalid. Custom Domains only w
orks if both DomainName and CertificateArn are provided
I used similar if statements already for Policies and VpcConfig of a lambda function and there they worked perfectly.
Does anybody have an idea?
The text was updated successfully, but these errors were encountered:
Description:
Based on this documentation https://github.com/awslabs/serverless-application-model/blob/develop/docs/cloudformation_compatibility.rst#events-properties all intrinsic functions should work for the Domain Object of AWS::Serverless::Api.
However if I try something like this.
The deploy fails with: Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Applica
tion Specification document. Number of errors found: 1. Resource with id [APIGateway] is invalid. Custom Domains only w
orks if both DomainName and CertificateArn are provided
I used similar if statements already for Policies and VpcConfig of a lambda function and there they worked perfectly.
Does anybody have an idea?
The text was updated successfully, but these errors were encountered: