-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
Description:
When setting DisableExecuteApiEndpoint
to True for disabling default endpoint on AWS::Serverless::HttpApi, stack fails with an error.
Sample template
SampleHttpApi:
Type: AWS::Serverless::HttpApi
Properties:
Auth:
Authorizers:
GeneralAuth:
AuthorizationScopes:
- email
IdentitySource: "$request.header.Authorization"
JwtConfiguration:
issuer: !Sub https://cognito-idp.${AWS::Region}.amazonaws.com/${UserPoolId}
audience:
- !Ref Audience
CustomLambdaAuthorizer:
AuthorizerPayloadFormatVersion: 2.0
EnableSimpleResponses: True
FunctionInvokeRole: !GetAtt LambdaAuthInvokeRole.Arn
FunctionArn: !GetAtt CustomLambdaAuth.Arn
Identity:
Headers:
- Authorization
ReauthorizeEvery: 5
CorsConfiguration:
AllowMethods:
- GET
AllowOrigins:
- http://localhost:8080
Domain:
CertificateArn: !Ref CustomDomainCert
DomainName: !Ref DomainName
EndpointConfiguration: REGIONAL
SecurityPolicy: TLS_1_2
Route53:
EvaluateTargetHealth: False
HostedZoneId: !Ref HostedZoneId
DisableExecuteApiEndpoint: True
Steps to reproduce the issue:
- Create a HTTP API via SAM
- Attempt to disable default endpoint via
DisableExecuteApiEndpoint
to True
Observed result:
Expected result:
Should execute successfully and disable default endpoint.