-
Notifications
You must be signed in to change notification settings - Fork 0
/
LF2-formation-test.yaml
32 lines (31 loc) · 1.14 KB
/
LF2-formation-test.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"
Metadata:
Generator: "former2"
Description: ""
Resources:
LambdaFunction2:
Type: "AWS::Lambda::Function"
Properties:
Description: ""
FunctionName: "LF2gen"
Handler: "LF2.lambda_handler"
Architectures:
- "x86_64"
Code:
S3Bucket: "code-bucket-test-0329"
S3Key: !Sub "LF2-ebfff7c0-bcc0-4141-a850-78caa30e29ac.zip"
Role: !GetAtt IAMRole8.Arn
Runtime: "python3.9"
Timeout: 300
IAMRole8:
Type: "AWS::IAM::Role"
Properties:
Path: "/service-role/"
RoleName: "LF2gen-role"
AssumeRolePolicyDocument: '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'
MaxSessionDuration: 3600
ManagedPolicyArns:
- !Sub "arn:aws:iam::${AWS::AccountId}:policy/service-role/AWSLambdaBasicExecutionRole-3624a2b1-b419-4d5e-98be-c0b4db69c924"
- !Sub "arn:aws:iam::${AWS::AccountId}:policy/LambdaLexV2Policy"
- "arn:aws:iam::aws:policy/AmazonAPIGatewayInvokeFullAccess"
- "arn:aws:iam::aws:policy/AmazonOpenSearchServiceFullAccess"