applications
Creates, updates, deletes or gets an application
resource or lists applications
in a region
Overview
Name | applications |
Type | Resource |
Description | Resource schema for AWS::EMRServerless::Application Type |
Id | aws.emrserverless.applications |
Fields
Name | Datatype | Description |
---|---|---|
architecture | string | The cpu architecture of an application. |
name | string | User friendly Application name. |
release_label | string | EMR release label. |
type | string | The type of the application |
initial_capacity | array | Initial capacity initialized when an Application is started. |
maximum_capacity | object | Maximum allowed cumulative resources for an Application. No new resources will be created once the limit is hit. |
tags | array | Tag map with key and value |
auto_start_configuration | object | Configuration for Auto Start of Application. |
auto_stop_configuration | object | Configuration for Auto Stop of Application. |
image_configuration | object | The image configuration. |
monitoring_configuration | object | Monitoring configuration for batch and interactive JobRun. |
runtime_configuration | array | Runtime configuration for batch and interactive JobRun. |
network_configuration | object | Network Configuration for customer VPC connectivity. |
arn | string | The Amazon Resource Name (ARN) of the EMR Serverless Application. |
application_id | string | The ID of the EMR Serverless Application. |
worker_type_specifications | object | The key-value pairs that specify worker type to WorkerTypeSpecificationInput. This parameter must contain all valid worker types for a Spark or Hive application. Valid worker types include Driver and Executor for Spark applications and HiveDriver and TezTask for Hive applications. You can either set image details in this parameter for each worker type, or in imageConfiguration for all worker types. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ReleaseLabel, Type, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all applications
in a region.
SELECT
region,
architecture,
name,
release_label,
type,
initial_capacity,
maximum_capacity,
tags,
auto_start_configuration,
auto_stop_configuration,
image_configuration,
monitoring_configuration,
runtime_configuration,
network_configuration,
arn,
application_id,
worker_type_specifications
FROM aws.emrserverless.applications
WHERE region = 'us-east-1';
Gets all properties from an individual application
.
SELECT
region,
architecture,
name,
release_label,
type,
initial_capacity,
maximum_capacity,
tags,
auto_start_configuration,
auto_stop_configuration,
image_configuration,
monitoring_configuration,
runtime_configuration,
network_configuration,
arn,
application_id,
worker_type_specifications
FROM aws.emrserverless.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>';
INSERT
example
Use the following StackQL query and manifest file to create a new application
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.emrserverless.applications (
ReleaseLabel,
Type,
region
)
SELECT
'{{ ReleaseLabel }}',
'{{ Type }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.emrserverless.applications (
Architecture,
Name,
ReleaseLabel,
Type,
InitialCapacity,
MaximumCapacity,
Tags,
AutoStartConfiguration,
AutoStopConfiguration,
ImageConfiguration,
MonitoringConfiguration,
RuntimeConfiguration,
NetworkConfiguration,
WorkerTypeSpecifications,
region
)
SELECT
'{{ Architecture }}',
'{{ Name }}',
'{{ ReleaseLabel }}',
'{{ Type }}',
'{{ InitialCapacity }}',
'{{ MaximumCapacity }}',
'{{ Tags }}',
'{{ AutoStartConfiguration }}',
'{{ AutoStopConfiguration }}',
'{{ ImageConfiguration }}',
'{{ MonitoringConfiguration }}',
'{{ RuntimeConfiguration }}',
'{{ NetworkConfiguration }}',
'{{ WorkerTypeSpecifications }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application
props:
- name: Architecture
value: '{{ Architecture }}'
- name: Name
value: '{{ Name }}'
- name: ReleaseLabel
value: '{{ ReleaseLabel }}'
- name: Type
value: '{{ Type }}'
- name: InitialCapacity
value:
- Key: '{{ Key }}'
Value:
WorkerCount: '{{ WorkerCount }}'
WorkerConfiguration:
Cpu: '{{ Cpu }}'
Memory: '{{ Memory }}'
Disk: '{{ Disk }}'
- name: MaximumCapacity
value:
Cpu: null
Memory: null
Disk: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: AutoStartConfiguration
value:
Enabled: '{{ Enabled }}'
- name: AutoStopConfiguration
value:
Enabled: '{{ Enabled }}'
IdleTimeoutMinutes: '{{ IdleTimeoutMinutes }}'
- name: ImageConfiguration
value:
ImageUri: '{{ ImageUri }}'
- name: MonitoringConfiguration
value:
S3MonitoringConfiguration: null
ManagedPersistenceMonitoringConfiguration: null
CloudWatchLoggingConfiguration: null
- name: RuntimeConfiguration
value:
- Classification: '{{ Classification }}'
Properties: {}
Configurations:
- null
- name: NetworkConfiguration
value:
SubnetIds:
- '{{ SubnetIds[0] }}'
SecurityGroupIds:
- '{{ SecurityGroupIds[0] }}'
- name: WorkerTypeSpecifications
value: {}
DELETE
example
/*+ delete */
DELETE FROM aws.emrserverless.applications
WHERE data__Identifier = '<ApplicationId>'
AND region = 'us-east-1';
Permissions
To operate on the applications
resource, the following permissions are required:
Create
kms:Create*,
kms:Describe*,
kms:Enable*,
kms:List*,
kms:Put*,
kms:Update*,
kms:Revoke*,
kms:Disable*,
kms:Get*,
kms:Delete*,
kms:ScheduleKeyDeletion,
kms:CancelKeyDeletion,
kms:GenerateDataKey,
kms:TagResource,
kms:UntagResource,
kms:Decrypt,
emr-serverless:CreateApplication,
emr-serverless:TagResource,
emr-serverless:GetApplication,
iam:CreateServiceLinkedRole,
ec2:CreateNetworkInterface,
ecr:BatchGetImage,
ecr:DescribeImages,
ecr:GetDownloadUrlForLayer
Read
emr-serverless:GetApplication
Update
emr-serverless:UpdateApplication,
emr-serverless:TagResource,
emr-serverless:UntagResource,
emr-serverless:GetApplication,
ec2:CreateNetworkInterface,
ecr:BatchGetImage,
ecr:DescribeImages,
ecr:GetDownloadUrlForLayer,
kms:Create*,
kms:Describe*,
kms:Enable*,
kms:List*,
kms:Put*,
kms:Update*,
kms:Revoke*,
kms:Disable*,
kms:Get*,
kms:Delete*,
kms:ScheduleKeyDeletion,
kms:CancelKeyDeletion,
kms:GenerateDataKey,
kms:TagResource,
kms:UntagResource,
kms:Decrypt
Delete
emr-serverless:DeleteApplication,
emr-serverless:GetApplication
List
emr-serverless:ListApplications