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_resourceSELECTIdentifier, 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 = '{{ region }}' AND
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
'{{ action_on_failure }}',
'{{ hadoop_jar_step }}',
'{{ job_flow_id }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

emr:AddJobFlowSteps