Skip to content

(stepfunctions-tasks): AutoTerminationPolicy feature is not supported by Step Functions #17452

@frederic-schmaljohann

Description

@frederic-schmaljohann

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

  1. Define a State machine
  2. Add a step to create an EMR cluster with tasks.EmrCreateCluster and AutoTerminationPolicy
  3. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions