This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import common.utils | |
def my_function(event, context): | |
common.utils.print_message('Hello World!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: package-external-example | |
provider: | |
name: aws | |
runtime: python3.6 | |
custom: | |
packageExternal: | |
external: | |
- '../common' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import boto3 | |
client = boto3.client('stepfunctions') | |
def run(event, context): | |
client.start_execution( | |
stateMachineArn=os.environ['CF_MyStateMachine'], | |
name=str(context.aws_request_id), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: state-machine-invoking-example | |
provider: | |
name: aws | |
region: eu-west-1 | |
runtime: python3.6 | |
# Specific Role for the Lambda and machine is better | |
iamRoleStatements: | |
- Effect: "Allow" | |
Action: |