forked from aws-samples/step-functions-workflows-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
32 lines (25 loc) · 1.24 KB
/
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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
simple retry
Sample SAM Template for simple retry
Resources:
StateMachineArn:
Type: AWS::Serverless::StateMachine # More info about State Machine Resource: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-statemachine.html
Properties:
DefinitionUri: statemachine/statemachine.asl.json
Policies: # Find out more about SAM policy templates: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-policy-templates.html
- S3ReadPolicy:
BucketName: !GetAtt ExampleS3Bucket.BucketName
ExampleS3Bucket:
Type: 'AWS::S3::Bucket'
DeletionPolicy: Retain
Properties:
BucketName: ExampleS3Bucket
Outputs:
# StockTradingStateMachineHourlyTradingSchedule is an implicit Schedule event rule created out of Events key under Serverless::StateMachine
# Find out more about other implicit resources you can reference within SAM
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-generated-resources.html
StateMachineArn:
Description: "state machine ARN"
Value: !Ref StateMachineArn