Skip to content

Commit

Permalink
Merge pull request #239 from innovencelabs/release-fix
Browse files Browse the repository at this point in the history
Required API key in SAM template
  • Loading branch information
ambujraj authored May 19, 2024
2 parents 4a94270 + e8c688f commit 4e96580
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions middleware/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,34 +102,44 @@ Resources:
Ref: ByteShareAPIGW
Path: /health
Method: any
Auth:
ApiKeyRequired: true
UploadApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /upload/{proxy+}
Method: any
Auth:
ApiKeyRequired: true
DownloadApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /download/{proxy+}
Method: any
Auth:
ApiKeyRequired: true
FeedbackApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /feedback
Method: any
Auth:
ApiKeyRequired: true
SubscribeApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /subscribe
Method: any
Auth:
ApiKeyRequired: true
SecuredApi:
Type: Api
Properties:
Expand All @@ -139,6 +149,7 @@ Resources:
Method: any
Auth:
Authorizer: AWS_IAM
ApiKeyRequired: true
WebhookApi:
Type: Api
Properties:
Expand All @@ -159,6 +170,8 @@ Resources:
StageName: prod
OpenApiVersion: "3.0.0"
TracingEnabled: true
Auth:
ApiKeyRequired: true
Cors:
AllowMethods: "'OPTIONS,GET,POST,PUT,DELETE'"
AllowHeaders: "'Content-Type,X-Amz-Date,Authorization,x-api-key,X-Amz-Security-Token,File-Length,X-Auth-Token'"
Expand Down

0 comments on commit 4e96580

Please sign in to comment.