From 4ac92cb6120ad0508f17485237d50dec19970514 Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Thu, 15 Feb 2024 12:27:31 +0530 Subject: [PATCH] Create rest api --- infrastructure/frontend.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/infrastructure/frontend.yml b/infrastructure/frontend.yml index adfb80e28..560a9ae4f 100644 --- a/infrastructure/frontend.yml +++ b/infrastructure/frontend.yml @@ -19,14 +19,17 @@ Parameters: Description: Name of the zip file. Resources: - HttpApi: - Type: AWS::Serverless::HttpApi + RestApi: + Type: AWS::Serverless::Api Properties: - StageName: $default + StageName: dev Name: Fn::Sub: canopas-website-ssr-frontend-${EnvName} Description: Fn::Sub: Canopas Website SSR Frontend API ${EnvName} + BinaryMediaTypes: ["*/*"] + DisableExecuteApiEndpoint: false + MinimumCompressionSize: 100 HttpApiFunction: Type: AWS::Serverless::Function @@ -46,9 +49,9 @@ Resources: Fn::Sub: Canopas Website SSR Frontend Lambda ${EnvName} Events: ProxyResource: - Type: HttpApi + Type: Api Properties: - ApiId: - Ref: HttpApi - Path: $default + RestApiId: + Ref: RestApi + Path: / Method: any