Skip to main content

steps

Creates, updates, deletes or gets a step resource or lists steps in a region

Overview

Namesteps
TypeResource
DescriptionSchema for AWS::EMR::Step
Idawscc.emr.steps

Fields

NameDatatypeDescription
idstringID generated by service
action_on_failurestringThis specifies what action to take when the cluster step fails. Possible values are CANCEL_AND_WAIT and CONTINUE.
hadoop_jar_stepobjectThe HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.
job_flow_idstringA string that uniquely identifies the cluster (job flow).
namestringThe name of the cluster step.
regionstringAWS region.

For more information, see AWS::EMR::Step.

Methods

NameAccessible byRequired Params
create_resourceINSERTJobFlowId, HadoopJarStep, ActionOnFailure, Name, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual step.

SELECT
region,
id,
action_on_failure,
hadoop_jar_step,
job_flow_id,
name
FROM awscc.emr.steps
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new step resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.emr.steps (
ActionOnFailure,
HadoopJarStep,
JobFlowId,
Name,
region
)
SELECT
'{{ ActionOnFailure }}',
'{{ HadoopJarStep }}',
'{{ JobFlowId }}',
'{{ Name }}',
'{{ region }}';

Permissions

To operate on the steps resource, the following permissions are required:

Create

emr:AddJobFlowSteps