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.
Idawscc.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

NameResourceAccessible byRequired Params
create_resourcequeuesINSERTClusterId, region
delete_resourcequeuesDELETEIdentifier, region
update_resourcequeuesUPDATEIdentifier, PatchDocument, region
list_resourcesqueues_list_onlySELECTregion
get_resourcequeuesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual queue.

SELECT
region,
arn,
cluster_id,
compute_node_group_configurations,
error_info,
id,
name,
status,
tags
FROM awscc.pcs.queues
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.pcs.queues
SET PatchDocument = string('{{ {
"ComputeNodeGroupConfigurations": compute_node_group_configurations,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.pcs.queues
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

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