-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
28 lines (25 loc) · 936 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sc-platform-pii-lambda
Sample SAM Template for sc-platform-pii-lambda
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 6
Resources:
DEKCreationFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: dek-creator/
Handler: app.lambdaHandler
Runtime: nodejs18.x
Policies:
- Statement:
- Sid: FetchSecret
Effect: Allow
Action:
- secretsmanager:GetSecretValue
Resource: 'arn:aws:secretsmanager:ap-south-1:736414281642:secret:staging-platform-pii-lambda-p801Bd'
Architectures:
- x86_64