Resources: MyFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://sam-demo-bucket/hello.zip Handler: hello.handler Runtime: python2.7 ReservedConcurrentExecutions: 100 StateMachine: Type: AWS::Serverless::StateMachine Properties: Name: MyStateMachineWithDefinitionInS3 Type: STANDARD DefinitionUri: Bucket: sam-demo-bucket Key: my-state-machine.asl.json Version: 3 DefinitionSubstitutions: my_lambda_arn: !GetAtt MyFunction.Arn Policies: - Version: '2012-10-17' Statement: - Effect: Allow Action: lambda:InvokeFunction Resource: !GetAtt MyFunction.Arn