Skip to content

Commit 41f76d9

Browse files
committed
Added another sam example
1 parent 4ea7198 commit 41f76d9

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

examples/sam/5_parallel.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
AWSTemplateFormatVersion: "2010-09-09"
4+
Transform: AWS::Serverless-2016-10-31
5+
6+
Resources:
7+
SimpleStateMachine:
8+
Type: AWS::Serverless::StateMachine
9+
Properties:
10+
Definition:
11+
StartAt: Hello
12+
States:
13+
Hello:
14+
Type: Task
15+
Resource: arn:aws:lambda:eu-west-1:99999999999:function:HelloWord_Step
16+
Next: Parallel
17+
Parallel:
18+
Type: Parallel
19+
Next: Goodbye
20+
Branches:
21+
- StartAt: Calculate PI
22+
States:
23+
Calculate PI:
24+
Type: Task
25+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
26+
Next: Calculate Radius
27+
Calculate Radius:
28+
Type: Task
29+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
30+
Next: Calculate Area
31+
Calculate Area:
32+
Type: Task
33+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
34+
End: true
35+
- StartAt: Calculate constant E
36+
States:
37+
Calculate constant E:
38+
Type: Task
39+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
40+
Next: Make decision
41+
Make decision:
42+
Type: Choice
43+
Choices:
44+
- Next: Search record
45+
- Next: Retrieve record
46+
Search record:
47+
Type: Task
48+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
49+
End: true
50+
Retrieve record:
51+
Type: Task
52+
Resource: arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step
53+
End: true
54+
Goodbye:
55+
Type: Task
56+
Resource: arn:aws:lambda:eu-west-1:99999999999:function:HelloWord_Step
57+
End: true

0 commit comments

Comments
 (0)