aws.ec2-spot-fleet-request¶
Custodian resource for managing EC2 Spot Fleet Requests.
Filters¶
Actions¶
resize¶
Action to resize the min/max/desired count in an application autoscaling target
There are several ways to use this action:
apply a fixed resize of min, max or desired, optionally saving the previous values to a named tag (for restoring later):
policies:
- name: offhours-ecs-off
resource: ecs-service
filters:
- type: offhour
offhour: 19
default_tz: bst
actions:
- type: resize
min-capacity: 0
desired: 0
save-options-tag: OffHoursPrevious
suspend-scaling: true
restore previous values for min/max/desired from a tag:
policies:
- name: offhours-ecs-on
resource: ecs-service
filters:
- type: onhour
onhour: 8
default_tz: bst
actions:
- type: resize
restore-options-tag: OffHoursPrevious
restore-scaling: true
properties:
desired:
anyOf:
- enum:
- current
- minimum: 0
type: integer
max-capacity:
minimum: 0
type: integer
min-capacity:
minimum: 0
type: integer
restore-options-tag:
type: string
restore-scaling:
type: boolean
save-options-tag:
type: string
suspend-scaling:
type: boolean
type:
enum:
- resize
required:
- type
Permissions - ec2:CreateTags, ec2:ModifySpotFleetRequest