Skip to main content

serverless_clusters

Creates, updates, deletes or gets a serverless_cluster resource or lists serverless_clusters in a region

Overview

Nameserverless_clusters
TypeResource
DescriptionResource Type definition for AWS::MSK::ServerlessCluster
Idaws.msk.serverless_clusters

Fields

NameDatatypeDescription
arnstring
cluster_namestring
vpc_configsarray
client_authenticationobject
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTClusterName, VpcConfigs, ClientAuthentication, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all serverless_clusters in a region.

SELECT
region,
arn,
cluster_name,
vpc_configs,
client_authentication,
tags
FROM aws.msk.serverless_clusters
WHERE region = 'us-east-1';

Gets all properties from an individual serverless_cluster.

SELECT
region,
arn,
cluster_name,
vpc_configs,
client_authentication,
tags
FROM aws.msk.serverless_clusters
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.msk.serverless_clusters (
ClusterName,
VpcConfigs,
ClientAuthentication,
region
)
SELECT
'{{ ClusterName }}',
'{{ VpcConfigs }}',
'{{ ClientAuthentication }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.msk.serverless_clusters
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

kafka:CreateClusterV2,
kafka:TagResource,
kafka:DescribeClusterV2,
ec2:CreateVpcEndpoint,
ec2:CreateTags,
ec2:DescribeVpcAttribute,
ec2:DescribeSubnets,
ec2:DescribeVpcEndpoints,
ec2:DescribeVpcs,
ec2:DescribeSecurityGroups

Read

kafka:DescribeClusterV2

Delete

kafka:DeleteCluster,
kafka:DescribeClusterV2,
ec2:DeleteVpcEndpoints

List

kafka:ListClustersV2