Skip to main content

queues

Creates, updates, deletes or gets a queue resource or lists queues in a region

Overview

Namequeues
TypeResource
DescriptionAWS::PCS::Queue resource creates an AWS PCS queue.
Idaws.pcs.queues

Fields

NameDatatypeDescription
arnstringThe unique Amazon Resource Name (ARN) of the queue.
cluster_idstringThe ID of the cluster of the queue.
compute_node_group_configurationsarrayThe list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
error_infoarrayThe list of errors that occurred during queue provisioning.
idstringThe generated unique ID of the queue.
namestringThe name that identifies the queue.
statusstringThe provisioning status of the queue. The provisioning status doesn't indicate the overall health of the queue.
tagsobject1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
regionstringAWS region.

For more information, see AWS::PCS::Queue.

Methods

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

SELECT examples

Gets all queues in a region.

SELECT
region,
arn,
cluster_id,
compute_node_group_configurations,
error_info,
id,
name,
status,
tags
FROM aws.pcs.queues
WHERE region = 'us-east-1';

Gets all properties from an individual queue.

SELECT
region,
arn,
cluster_id,
compute_node_group_configurations,
error_info,
id,
name,
status,
tags
FROM aws.pcs.queues
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.pcs.queues (
ClusterId,
region
)
SELECT
'{{ ClusterId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

ec2:CreateNetworkInterface,
ec2:DescribeVpcs,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups,
ec2:GetSecurityGroupsForVpc,
iam:CreateServiceLinkedRole,
secretsmanager:CreateSecret,
secretsmanager:TagResource,
pcs:CreateQueue,
pcs:GetQueue,
pcs:ListTagsForResource,
pcs:TagResource

Read

pcs:GetQueue,
pcs:ListTagsForResource

Update

pcs:GetQueue,
pcs:UpdateQueue,
pcs:ListTagsForResource,
pcs:TagResource,
pcs:UntagResource

Delete

pcs:DeleteQueue,
pcs:GetQueue

List

pcs:ListClusters,
pcs:ListQueues