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
It looks like there are only a subset of the step types implemented in StringStep. There should be a case statement for each supported step type since your error is triggered in the default case block:
case 'aws:executeAwsApi':
case 'aws:waitForAwsResourceProperty':
case 'aws:assertAwsResourceProperty':
case 'aws:pause':
case 'aws:sleep':
case 'aws:executeScript':
case 'aws:branch':
case 'aws:approve'
The good news (I think) is that all I see this code doing for the cases it does implement is extracting arguments from the input Yaml and using them to call the appropriate step constructor. For example, from the aws:assertAwsResourceProperty steps's compiled JavaScript:
This class is a Facade/Adapter design pattern. It may be straightforward to create a PR or fix this in a fork of your own by just adding new case blocks and calling the relevant constructor that you need (In this case, the RunInstancesStep).
Here is my cdk code
Here is my YAML Automation Document (it works if I copy / paste in the AWS console)
And the error raised by the function
The text was updated successfully, but these errors were encountered: