Skip to content

Commit

Permalink
Create rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 15, 2024
1 parent 680aac6 commit 4ac92cb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions infrastructure/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4ac92cb

Please sign in to comment.