-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
117 lines (110 loc) · 4.44 KB
/
template.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Geospatial applications mainly target Turkish users
Resources:
PaftaBulucuApi:
Type: AWS::Serverless::Api
Properties:
OpenApiVersion: '2.0'
Name: PaftaBulucuApi
StageName: prod
Auth:
DefaultAuthorizer: GuAuth0CustomAuthorizer
AddDefaultAuthorizerToCorsPreflight: false
Authorizers:
GuAuth0CustomAuthorizer:
FunctionArn: !GetAtt GuAuth0CustomAuthorizer.Arn
Identity:
ReauthorizeEvery: 0
Cors:
AllowMethods: "'*'"
AllowHeaders: "'*'"
AllowOrigin: "'*'"
GuMailChimpApi:
Type: AWS::Serverless::Api
Properties:
OpenApiVersion: '2.0'
Name: GuMailChimpApi
StageName: prod
Cors:
AllowMethods: "'*'"
AllowHeaders: "'*'"
AllowOrigin: "'*'"
GuAuth0CustomAuthorizer:
Type: AWS::Serverless::Function
Properties:
FunctionName: GuAuth0CustomAuthorizer
CodeUri: ./src/Gu.ApiGateway.CustomAuthorizer/
Handler: Gu.ApiGateway.CustomAuthorizer::Gu.ApiGateway.CustomAuthorizer.Function::FunctionHandlerAsync
Runtime: dotnet6
MemorySize: 256
Timeout: 30
Role: arn:aws:iam::065627307699:role/GuApiCustomAuthorizerLambdaFunctionRole
Environment:
Variables:
VALID_ISSUER: https://geomatik.eu.auth0.com/
VALID_AUDIENCE: https://api.geomatikuygulamalar.com
METADATA_ADDRESS: https://geomatik.eu.auth0.com/.well-known/openid-configuration
PaftaBulucuBotFunction:
Type: 'AWS::Serverless::Function'
Properties:
FunctionName: PaftaBulucuBotFunction
Handler: Gu.PaftaBulucu.Bot::Gu.PaftaBulucu.Bot.Function::FunctionHandlerAsync
Runtime: dotnet6
CodeUri: ./src/Gu.PaftaBulucu.Bot/
Description: Provide Telegram bot for sheet queries
MemorySize: 256
Timeout: 30
Role: arn:aws:iam::065627307699:role/GuPaftaBulucuLambdaFunctionRole
Environment:
Variables:
DynamoDbTableName: PaftaBulucuTelegramQueries
BucketName: pafta.bulucu
Events:
ProxyApi:
Type: Api
Properties:
RestApiId: !Ref PaftaBulucuApi
Path: /telegram/bot
Method: POST
Auth:
Authorizer: NONE
GuMailChimpApiFunction:
Type: 'AWS::Serverless::Function'
Properties:
FunctionName: GuMailChimpApiFunction
Handler: Gu.MailChimp.Api::Gu.MailChimp.Api.Function::FunctionHandlerAsync
Runtime: dotnet6
CodeUri: ./src/Gu.MailChimp.Api/
Description: Provide API for MailChimp subscriptions
MemorySize: 256
Timeout: 30
Role: arn:aws:iam::065627307699:role/GuMailChimpApiLambdaFunctionRole
Events:
ProxyApi:
Type: Api
Properties:
RestApiId: !Ref GuMailChimpApi
Path: /
Method: POST
PaftaBulucuApiFunction:
Type: 'AWS::Serverless::Function'
Properties:
FunctionName: PaftaBulucuApiFunction
Handler: Gu.PaftaBulucu.WebApi::Gu.PaftaBulucu.WebApi.LambdaEntryPoint::FunctionHandlerAsync
Runtime: dotnet6
CodeUri: ./src/Gu.PaftaBulucu.WebApi/
Description: Provide set of endpoints to find sheet name based on coordinates or get sheet's boundries based on sheet name.
MemorySize: 256
Timeout: 30
Role: arn:aws:iam::065627307699:role/GuPaftaBulucuLambdaFunctionRole
Environment:
Variables:
ASPNETCORE_ENVIRONMENT: Production
Events:
ProxyApi:
Type: Api
Properties:
RestApiId: !Ref PaftaBulucuApi
Path: /{proxy+}
Method: ANY