You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how to define a whole state machine in Amazon State Language and provision it as a resource in CDK using the CustomState construct in CDK.
Environment
CDK CLI Version: 1.59.0 (build 1d082f4)
Example: stepfunctions-job-poller
Example Version: 207
OS: Windows 10
Language: TypeScript
Other information
Something like:
const stateJson = {
"Comment": "A Hello World example of the Amazon States Language using Pass states",
"StartAt": "Hello",
"States": {
"Hello": {
"Type": "Pass",
"Result": "Hello",
"Next": "World"
},
"World": {
"Type": "Pass",
"Result": "World",
"End": true
}
}
};
const custom = new sfn.CustomState(this, 'my custom task', {
stateJson,
});
//maybe I should use something else than the chain construct?
const definition = sfn.Chain.start(custom);
new sfn.StateMachine(this, 'my state machine', {
definition
});
guidanceQuestion that needs advice or information.
1 participant
Converted from issue
This discussion was converted from issue #326 on March 31, 2022 23:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
❓ Guidance Question
The Question
I would like to know how to define a whole state machine in Amazon State Language and provision it as a resource in CDK using the CustomState construct in CDK.
Environment
Other information
Something like:
Beta Was this translation helpful? Give feedback.
All reactions