Skip to main content

virtual_clusters

Creates, updates, deletes or gets a virtual_cluster resource or lists virtual_clusters in a region

Overview

Namevirtual_clusters
TypeResource
DescriptionResource Schema of AWS::EMRContainers::VirtualCluster Type
Idaws.emrcontainers.virtual_clusters

Fields

NameDatatypeDescription
arnstring
container_providerobjectContainer provider of the virtual cluster.
idstringId of the virtual cluster.
namestringName of the virtual cluster.
tagsarrayAn array of key-value pairs to apply to this virtual cluster.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, ContainerProvider, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all virtual_clusters in a region.

SELECT
region,
arn,
container_provider,
id,
name,
tags
FROM aws.emrcontainers.virtual_clusters
WHERE region = 'us-east-1';

Gets all properties from an individual virtual_cluster.

SELECT
region,
arn,
container_provider,
id,
name,
tags
FROM aws.emrcontainers.virtual_clusters
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.emrcontainers.virtual_clusters (
ContainerProvider,
Name,
region
)
SELECT
'{{ ContainerProvider }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.emrcontainers.virtual_clusters
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

emr-containers:CreateVirtualCluster,
emr-containers:TagResource,
iam:CreateServiceLinkedRole

Read

emr-containers:DescribeVirtualCluster

Delete

emr-containers:DeleteVirtualCluster

List

emr-containers:ListVirtualClusters

Update

emr-containers:DescribeVirtualCluster,
emr-containers:ListTagsForResource,
emr-containers:TagResource,
emr-containers:UntagResource