A simple CDK application that illustrates a pattern for splitting business logic and provisioning code.
- function - just the code for a Lambda function
- function-stack - stack definition code which includes function
- provision - defines top-level CDK app, environment and stack(s), depends on and references
function-stack
./gradlew clean build shadowJar
cdk synth
cdk diff --profile futz
cdk deploy --profile futz
aws lambda invoke --function-name futz-func --payload '"shane"' --profile futz out.txt
aws stepfunctions start-execution --state-machine-arn arn:aws:states:us-west-2:515292396565:stateMachine:futz-sm --input '"shane"' --profile futz