steps
Creates, updates, deletes or gets a step resource or lists steps in a region
Overview
| Name | steps |
| Type | Resource |
| Description | Schema for AWS::EMR::Step |
| Id | awscc.emr.steps |
Fields
| Name | Datatype | Description |
|---|---|---|
id | string | ID generated by service |
action_on_failure | string | This specifies what action to take when the cluster step fails. Possible values are CANCEL_AND_WAIT and CONTINUE. |
hadoop_jar_step | object | The 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_id | string | A string that uniquely identifies the cluster (job flow). |
name | string | The name of the cluster step. |
region | string | AWS region. |
For more information, see AWS::EMR::Step.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | JobFlowId, HadoopJarStep, ActionOnFailure, Name, region |
get_resource | SELECT | data__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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.emr.steps (
ActionOnFailure,
HadoopJarStep,
JobFlowId,
Name,
region
)
SELECT
'{{ ActionOnFailure }}',
'{{ HadoopJarStep }}',
'{{ JobFlowId }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.emr.steps (
ActionOnFailure,
HadoopJarStep,
JobFlowId,
Name,
region
)
SELECT
'{{ ActionOnFailure }}',
'{{ HadoopJarStep }}',
'{{ JobFlowId }}',
'{{ Name }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: step
props:
- name: ActionOnFailure
value: '{{ ActionOnFailure }}'
- name: HadoopJarStep
value:
Args:
- '{{ Args[0] }}'
Jar: '{{ Jar }}'
MainClass: '{{ MainClass }}'
StepProperties:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: JobFlowId
value: '{{ JobFlowId }}'
- name: Name
value: '{{ Name }}'
Permissions
To operate on the steps resource, the following permissions are required:
Create
emr:AddJobFlowSteps