-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
40 lines (37 loc) · 973 Bytes
/
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
33
34
35
36
37
38
39
40
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 15
Resources:
SsoUserFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: user/
Handler: app.lambdaHandler
Runtime: nodejs16.x
Architectures:
- arm64
Policies:
- Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- identitystore:CreateUser
- identitystore:DeleteUser
- identitystore:UpdateUser
Resource: "*"
Metadata: # Manage esbuild properties
BuildMethod: esbuild
BuildProperties:
Minify: true
Target: "es2021"
Sourcemap: true
EntryPoints:
- app.ts
Outputs:
SsoUserFunctionResource:
Description: "Custom resource for managing sso users"
Value: !GetAtt SsoUserFunction.Arn
Export:
Name: "SsoUserFunction::Arn"