queues
Creates, updates, deletes or gets a queue
resource or lists queues
in a region
Overview
Name | queues |
Type | Resource |
Description | AWS::PCS::Queue resource creates an AWS PCS queue. |
Id | aws.pcs.queues |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The unique Amazon Resource Name (ARN) of the queue. |
cluster_id | string | The ID of the cluster of the queue. |
compute_node_group_configurations | array | The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups. |
error_info | array | The list of errors that occurred during queue provisioning. |
id | string | The generated unique ID of the queue. |
name | string | The name that identifies the queue. |
status | string | The provisioning status of the queue. The provisioning status doesn't indicate the overall health of the queue. |
tags | object | 1 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. |
region | string | AWS region. |
For more information, see AWS::PCS::Queue
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ClusterId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.pcs.queues (
ClusterId,
region
)
SELECT
'{{ ClusterId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.pcs.queues (
ClusterId,
ComputeNodeGroupConfigurations,
Name,
Tags,
region
)
SELECT
'{{ ClusterId }}',
'{{ ComputeNodeGroupConfigurations }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: queue
props:
- name: ClusterId
value: '{{ ClusterId }}'
- name: ComputeNodeGroupConfigurations
value:
- ComputeNodeGroupId: '{{ ComputeNodeGroupId }}'
- name: Name
value: '{{ Name }}'
- name: Tags
value: {}
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