-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(stepfunctions): Support for JSON Path in maxConcurrency field of step function map step #20152
Comments
Hi @jstag711! Can you try using |
This is what I tried, it fails to synth: Exception in thread "main" software.amazon.jsii.JsiiException: Validation failed with the following errors: maxConcurrency has to be a positive integer Code:
|
Ah. Looks like an aggressive synth time check that did not account for |
How should the numbers finally be expressed in the state machine definition? When I try manually editing it in the console to be this, it also complains: "MaxConcurrency": "$.maxConcurrency" |
…20279) Allows specifying `JsonPath.numberAt()` in `maxConcurrency` without synth-time errors and fixes #20152 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…ws#20279) Allows specifying `JsonPath.numberAt()` in `maxConcurrency` without synth-time errors and fixes aws#20152 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
I would like to use a Json path to specify the max concurrency for my map task in my step function. Presently you must give it a fixed integer.
Use Case
I have a use case where I would like to specify the max concurrency as input to my step function so that I can change that without re-deploying my step function definition.
Proposed Solution
Allow JSON path for max concurrency
Other Information
No response
Acknowledgements
CDK version used
1.152.0
Environment details (OS name and version, etc.)
MacOS 10.15.7
The text was updated successfully, but these errors were encountered: