Skip to main content

clusters

Creates, updates, deletes or gets a cluster resource or lists clusters in a region

Overview

Nameclusters
TypeResource
DescriptionDefinition of AWS::MediaLive::Cluster Resource Type
Idaws.medialive.clusters

Fields

NameDatatypeDescription
arnstringThe ARN of the Cluster.
channel_idsarrayThe MediaLive Channels that are currently running on Nodes in this Cluster.
cluster_typestringThe hardware type for the cluster.
idstringThe unique ID of the Cluster.
instance_role_arnstringThe IAM role your nodes will use.
namestringThe user-specified name of the Cluster to be created.
network_settingsobjectOn premises settings which will have the interface network mappings and default Output logical interface
statestringThe current state of the Cluster.
tagsarrayA collection of key-value pairs.
regionstringAWS region.

For more information, see AWS::MediaLive::Cluster.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all clusters in a region.

SELECT
region,
arn,
channel_ids,
cluster_type,
id,
instance_role_arn,
name,
network_settings,
state,
tags
FROM aws.medialive.clusters
WHERE region = 'us-east-1';

Gets all properties from an individual cluster.

SELECT
region,
arn,
channel_ids,
cluster_type,
id,
instance_role_arn,
name,
network_settings,
state,
tags
FROM aws.medialive.clusters
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.medialive.clusters (
ClusterType,
InstanceRoleArn,
Name,
NetworkSettings,
Tags,
region
)
SELECT
'{{ ClusterType }}',
'{{ InstanceRoleArn }}',
'{{ Name }}',
'{{ NetworkSettings }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

medialive:CreateCluster,
medialive:DescribeCluster,
medialive:CreateTags,
ecs:CreateCluster,
ecs:RegisterTaskDefinition,
ecs:TagResource,
ecs:CreateService,
iam:PassRole,
medialive:ListTagsForResource

Read

medialive:DescribeCluster,
medialive:ListTagsForResource

Update

medialive:UpdateCluster,
medialive:DescribeCluster,
medialive:CreateTags,
medialive:DeleteTags,
medialive:ListTagsForResource

Delete

medialive:DeleteCluster,
medialive:DescribeCluster,
ecs:DeleteService

List

medialive:ListClusters