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

Fields

NameDatatypeDescription
auto_scaling_group_namestring
max_group_prepared_capacityinteger
min_sizeinteger
pool_statestring
instance_reuse_policyobject
regionstringAWS region.

For more information, see AWS::AutoScaling::WarmPool.

Methods

NameResourceAccessible byRequired Params
create_resourcewarm_poolsINSERTAutoScalingGroupName, region
delete_resourcewarm_poolsDELETEIdentifier, region
update_resourcewarm_poolsUPDATEIdentifier, PatchDocument, region
list_resourceswarm_pools_list_onlySELECTregion
get_resourcewarm_poolsSELECTIdentifier, 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 awscc.autoscaling.warm_pools
WHERE
region = 'us-east-1' AND
Identifier = '{{ auto_scaling_group_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.autoscaling.warm_pools
SET PatchDocument = string('{{ {
"MaxGroupPreparedCapacity": max_group_prepared_capacity,
"MinSize": min_size,
"PoolState": pool_state,
"InstanceReusePolicy": instance_reuse_policy
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ auto_scaling_group_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.autoscaling.warm_pools
WHERE
Identifier = '{{ auto_scaling_group_name }}' AND
region = 'us-east-1';

Permissions

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

autoscaling:PutWarmPool,
autoscaling:DescribeWarmPool,
autoscaling:DescribeAutoScalingGroups