-
Notifications
You must be signed in to change notification settings - Fork 0
/
sam-template.yaml
32 lines (32 loc) · 1.03 KB
/
sam-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AWSTemplateFormatVersion: "2010-09-09"
Description: "K8S image path mutation webhook"
Transform: AWS::Serverless-2016-10-31
Metadata:
AWS::ServerlessRepo::Application:
Name: amazon-api-gateway-mutating-webhook-for-k8s
Description: Amazon API Gateway Mutating Webhook For K8S
Author: Walkley He
SpdxLicenseId: MIT-0
LicenseUrl: LICENSE
ReadmeUrl: README.md
Labels: ['api-gateway', 'k8s']
HomePageUrl: https://github.com/aws-samples/amazon-api-gateway-mutating-webhook-for-k8
SemanticVersion: 0.0.1
SourceCodeUrl: https://github.com/aws-samples/amazon-api-gateway-mutating-webhook-for-k8
Resources:
ApiFunction:
Type: AWS::Serverless::Function
Properties:
Events:
ApiEvent:
Type: HttpApi
Properties:
Path: /
Method: POST
Handler: lambda_function.handler
Runtime: python2.7
MemorySize: 128
Timeout: 60
Outputs:
APIGatewayURL:
Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}"