https://github.com/yskszk63/sam-local-asl
Generator for Amazon States Language for Local test.
https://github.com/yskszk63/sam-local-asl
sam stepfunctions stepfunctions-local
Last synced: 14 days ago
JSON representation
Generator for Amazon States Language for Local test.
- Host: GitHub
- URL: https://github.com/yskszk63/sam-local-asl
- Owner: yskszk63
- License: mit
- Created: 2022-08-18T14:41:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-19T13:41:33.000Z (almost 4 years ago)
- Last Synced: 2025-01-03T07:47:30.504Z (over 1 year ago)
- Topics: sam, stepfunctions, stepfunctions-local
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sam-local-asl
WORK IN PROGRESS.
Generator for Amazon States Language for Local test.
## Example
```bash
$ cat example/template.yml
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: Example template.
Resources:
MyStateMachine:
Type: AWS::Serverless::StateMachine
Properties:
DefinitionUri: example.asl.json
DefinitionSubstitutions:
MyFunction: !GetAtt MyFunction.Arn
MyFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: where/to/code
Handler: main.go
Runtime: go1.x
Architectures:
- x86_64
# TODO template.yml and example.asl.json not tested.
$ cat example/example.asl.json
{
"Comment": "Example State Machine",
"StartAt": "Run",
"States": {
"Run": {
"Type": "Task",
"Resource": "${MyFunction}",
"End": true
}
}
}
$ deno run --allow-read ./main.ts example/template.yml
{
"Comment": "Example State Machine",
"StartAt": "Run",
"States": {
"Run": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction",
"End": true
}
}
}
$
```
## License
[MIT](LICENSE)
## Author
[yskszk63](https://github.com/yskszk63)