A Step Function state machine construct focused on working well with the Workflow Studio
Project description
Workflow Studio compatible State Machine
This is a Workflow Studio compatible AWS Step Function state machine construct.
The goal of this construct is to make it easy to build and maintain your state machines using the Workflow Studio but still leverage the AWS CDK as the source of truth for the state machine.
Read more about it here.
How to Use This Construct
Start by designing your initial state machine using the Workflow Studio. When done with your first draft, copy and paste the ASL definition to a local file.
Create a new instance of this construct, handing it a fully parsed version of the ASL.
Then add overridden values.
The fields in the overrides
field should match the States
field of the ASL.
const secret = new Secret(stack, 'Secret', {});
new StateMachine(stack, 'Test', {
stateMachineName: 'A nice state machine',
definition: JSON.parse(fs.readFileSync(path.join(__dirname, 'sample.json'), 'utf8').toString()),
overrides: {
'Read database credentials secret': {
Parameters: {
SecretId: secret.secretArn,
},
},
},
});
In this example, the ASL has a state called 'Read database credentials secret' and the SecretId parameter is overridden with a CDK generated value. Future changes can be done by editing, debugging, and testing the state machine directly in the Workflow Studio. Once everything is working properly, copy and paste the ASL back to your local file.
Issues
Please open any issues you have on Github.
Contributing
Please submit PRs from forked repositories if you'd like to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mbonig.state-machine-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3b0e9ea3c038c0945267303f70845589067a08c5a11a3bd23155fb7484afd3 |
|
MD5 | b81b0b929a03aef34508c7a116e6fb9a |
|
BLAKE2b-256 | b030ea3880791e7917b28f5bf8620eefdfaab55f431298e95c1dbf90b9c5abad |
Hashes for mbonig.state_machine-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db17842b5eb6738fdae8aa2aab6d49d9caf4ebd706addffc0b2d6ff335414f90 |
|
MD5 | 773fdc3d2de89d0e5354fcb177bc8dd3 |
|
BLAKE2b-256 | bc2973c7735fd869de5746ee56538523965481ada22a01e59dffd6d809278178 |