-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(stepfunctions-tasks): AutoTerminationPolicy feature is not supported by Step Functions #17452
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-stepfunctions-tasksbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1
Description
What is the problem?
I'm not sure but the following seems to me like a bug:
When I try to add the AutoTerminationPolicy in tasks.EmrCreateCluster, get the following error while deploying:
Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "AutoTerminationPolicy" is not supported by Step Functions
I get the same error when I try to the AutoTerminationPolicy in the console when creating a cluster via Step Functions, which makes me wonder how this feature could even work.
This feature was introduced in cdk 1.132.0 with #16976
Thank you and regards
Frederic
Reproduction Steps
- Define a State machine
- Add a step to create an EMR cluster with tasks.EmrCreateCluster and AutoTerminationPolicy
- Deploy
What did you expect to happen?
A state machine which starts an EMR cluster with AutoTerminationPolicy
What actually happened?
The schema of the state machine is invalid.
CDK CLI Version
1.132.0
Framework Version
No response
Node.js Version
17.0.1
OS
Mac OS
Language
Python
Language Version
3.9.7
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-stepfunctions-tasksbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1