-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud-formation-lambdaSQSStack.yml
More file actions
66 lines (66 loc) · 1.69 KB
/
cloud-formation-lambdaSQSStack.yml
File metadata and controls
66 lines (66 loc) · 1.69 KB
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
AWSTemplateFormatVersion: 2010-09-09
Metadata:
'AWS::CloudFormation::Designer':
008859fc-bfa4-45f6-8575-a87abd056bf8:
size:
width: 60
height: 60
position:
x: 390
'y': 220
z: 0
embeds: []
dependson:
- d3b5da1a-7a9d-4179-ac5a-440c8e44ea3f
- 583e35ff-6619-4b4f-a5d9-fb913f1c898c
d3b5da1a-7a9d-4179-ac5a-440c8e44ea3f:
size:
width: 60
height: 60
position:
x: 598.0104064941406
'y': 150.01388549804688
z: 0
embeds: []
583e35ff-6619-4b4f-a5d9-fb913f1c898c:
size:
width: 60
height: 60
position:
x: 600
'y': 240
z: 0
embeds: []
Resources:
MyLambdaFunction:
Type: 'AWS::Lambda::Function'
Properties:
Code:
S3Bucket: viswanath-test-bucket
S3Key: sqs-lambda-0.0.1-SNAPSHOT-aws.jar
Description: Function that persists the sqs event into mongo db
FunctionName: MySQSMongoLambdaFunction
Handler: >-
org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest
Role: 'arn:aws:iam::191652197757:role/lambda-full-access'
Runtime: java11
MemorySize: 1024
VpcConfig:
SecurityGroupIds:
- sg-47ab5323
SubnetIds:
- subnet-cc8e1895
- subnet-bce894cb
- subnet-29ce9a4c
Metadata:
'AWS::CloudFormation::Designer':
id: 008859fc-bfa4-45f6-8575-a87abd056bf8
DependsOn:
- MySQSQueue
MySQSQueue:
Type: 'AWS::SQS::Queue'
Properties:
QueueName: test_queue
Metadata:
'AWS::CloudFormation::Designer':
id: d3b5da1a-7a9d-4179-ac5a-440c8e44ea3f