Skip to main content

warm_pools

Creates, updates, deletes or gets a warm_pool resource or lists warm_pools in a region

Overview

Namewarm_pools
TypeResource
DescriptionResource schema for AWS::AutoScaling::WarmPool.
Idaws.autoscaling.warm_pools

Fields

NameDatatypeDescription
auto_scaling_group_namestring
max_group_prepared_capacityinteger
min_sizeinteger
pool_statestring
instance_reuse_policyobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAutoScalingGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual warm_pool.

SELECT
region,
auto_scaling_group_name,
max_group_prepared_capacity,
min_size,
pool_state,
instance_reuse_policy
FROM aws.autoscaling.warm_pools
WHERE region = 'us-east-1' AND data__Identifier = '<AutoScalingGroupName>';

INSERT example

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

/*+ create */
INSERT INTO aws.autoscaling.warm_pools (
AutoScalingGroupName,
region
)
SELECT
'{{ AutoScalingGroupName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.autoscaling.warm_pools
WHERE data__Identifier = '<AutoScalingGroupName>'
AND region = 'us-east-1';

Permissions

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

Create

autoscaling:PutWarmPool,
autoscaling:DescribeWarmPool,
autoscaling:DescribeAutoScalingGroups

Delete

autoscaling:DeleteWarmPool,
autoscaling:DescribeWarmPool

Read

autoscaling:DescribeWarmPool

Update

autoscaling:PutWarmPool,
autoscaling:DescribeWarmPool,
autoscaling:DescribeAutoScalingGroups