-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws-stepfunctions-tasks: workerType not dynamic from payload #32359
Comments
The code comment for WorkerType enum from aws-cdk-lib.aws_stepfunctions_tasks.WorkerConfigurationProperty states that Changing the type of property Needs review with the team. |
Thanks for the reply. So I understand that a change must be made at the CDK level to make the workerType dynamic, right? Is there another way to perform this operation? I tried with the CallAwsService , Glue service, however I have problems with the integration_pattern, it does not accept synchronously (_sfn.IntegrationPattern.RUN_JOB) Thanks for the support!
|
Hello, thanks for creating this issue. I want to double check with you that you are able to workaround the |
Hello, thanks, yeah the problem is only with WorkerType it's a enum not a class so " |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
I want to implement a state machine that invokes a glue job synchronously and that at the time of invoking it, the type of worker and the number of workers are passed as parameters from the input (payload). It is verified that the implementation can be achieved at the console level, however, if I want to deploy it through CDK, it is not possible, because the value of "WorkerType" is a class of the WorkerType type and does not allow it to be placed dynamically from the input. A capture of the implementation in the console and the attempt at implementation in CDK are attached.
- But here the error:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Define in CDK the workerType to be dynamic from the payload input in the state machine, in other words, achieve the image but doing it with cdk.
I need that the argument "worker_type" not only accept a WorkerType Class that is a enum and only can put the define workers type insted of i need that also accept strings to pass "_sfn.JsonPath.string_at('$.glue_jobs_configs.executor_type')"in that argument
Current Behavior
Now, I can't put the workers type dynamic from payload input in the state machine because it only accept a class workerType that its a enum and only accepts the define workers.
If i pass a string that references the payload input it shows an error.
Reproduction Steps
In the step function task: GlueStartJobRun
Put the argument worker_type the value _sfn.JsonPath.string_at('$.glue_jobs_configs.executor_type')
worker_type= _sfn.JsonPath.string_at('$.glue_jobs_configs.executor_type')
Possible Solution
The argument worker_type accept also strings and dont validate that its only a class WorkerType
Additional Information/Context
No response
CDK CLI Version
2.171.1
Framework Version
No response
Node.js Version
20.11.1
OS
Windows 11
Language
Python
Language Version
3.11
Other information
No response
The text was updated successfully, but these errors were encountered: