This page provides a reference for AWS Auto Scaling actions available in the workflow automation actions catalog. Use these actions to manage Auto Scaling Groups (ASGs) — attaching and detaching instances, adjusting capacity, executing scaling policies, managing instance refreshes, controlling scaling processes, and querying ASG state.
Prerequisites
Before using AWS Auto Scaling actions in workflow automation, you need:
- An AWS account with permissions for the Auto Scaling service.
- AWS credentials configured as an IAM role ARN or static access key credentials.
- A secret in the New Relic Secrets Service for any static credentials. Reference it in the workflow as
${{ :secrets:<keyName> }}.
See Set up AWS credentials for how to create IAM users and IAM roles, and set up static and session AWS credentials.
Attach instances
The action identifier is aws.autoscaling.attachInstances.
Attach one or more EC2 instances to an existing Auto Scaling group. Attaching instances increases the desired capacity by the number attached. You can attach up to 20 instances per call. Instances must be in running or stopped state, and attaching must not exceed the group's maximum size.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
instanceIds | List | Required. EC2 instance IDs to attach. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See attach_instances — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example attaches an EC2 instance to an Auto Scaling group.
Workflow example |
|---|
|
Detach instances
The action identifier is aws.autoscaling.detachInstances.
Detach one or more EC2 instances from an Auto Scaling group. You can detach up to 20 instances per call. Instances must be in InService or Standby state. If shouldDecrementDesiredCapacity is false, the ASG launches replacement instances to maintain desired capacity.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
instanceIds | List | Required. EC2 instance IDs to detach. |
|
shouldDecrementDesiredCapacity | Boolean | Required. If |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See detach_instances — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example detaches an instance and decrements the desired capacity.
Workflow example |
|---|
|
Set desired capacity
The action identifier is aws.autoscaling.setDesiredCapacity.
Update the desired instance count of an Auto Scaling group. The new value must fall between the group's MinSize and MaxSize. If honorCooldown is true, the request is rejected when the ASG is within its cooldown period.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
desiredCapacity | Int | Required. Target number of instances. Must be between the group's |
|
honorCooldown | Boolean | Optional. If |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See set_desired_capacity — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example sets the desired capacity to 5 instances.
Workflow example |
|---|
|
Execute a scaling policy
The action identifier is aws.autoscaling.executePolicy.
Execute a named scaling policy on an Auto Scaling group. The policy must already exist on the group. For step scaling policies, metricValue and breachThreshold can override the policy thresholds. If honorCooldown is true and the ASG is in cooldown, the call succeeds but no scaling activity is triggered.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
policyName | String | Required. Name or ARN of the scaling policy to execute. |
|
honorCooldown | Boolean | Optional. If |
|
metricValue | String | Optional. Metric value override for step scaling policies. |
|
breachThreshold | String | Optional. Breach threshold override for step scaling policies. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See execute_policy — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example executes a named scale-out policy.
Workflow example |
|---|
|
Start an instance refresh
The action identifier is aws.autoscaling.startInstanceRefresh.
Initiate a rolling replacement of instances using the latest launch template or configuration. Only one refresh can be active per group at a time — if one is already in progress the call fails with InstanceRefreshInProgress. Use aws.autoscaling.describeInstanceRefreshes to poll status.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
strategy | String | Optional. Refresh strategy. |
|
preferences | Map | Optional. Refresh preferences. |
|
desiredConfiguration | Map | Optional. Override the launch template or configuration for this refresh. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example starts a rolling instance refresh with 90% minimum healthy instances.
Workflow example |
|---|
|
Cancel an instance refresh
The action identifier is aws.autoscaling.cancelInstanceRefresh.
Cancel an in-progress instance refresh. Only an in-progress refresh can be cancelled — calling this when no refresh is active fails with ActiveInstanceRefreshNotFound. Instances already replaced are not reverted; use aws.autoscaling.rollbackInstanceRefresh to revert replaced instances.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example cancels an in-progress instance refresh.
Workflow example |
|---|
|
Roll back an instance refresh
The action identifier is aws.autoscaling.rollbackInstanceRefresh.
Roll back an in-progress instance refresh, reverting replaced instances to their previous launch template or configuration. The group must have a checkpoint enabled to support rollback. If no refresh is eligible for rollback the call fails with ActiveInstanceRefreshNotFound.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example rolls back an in-progress instance refresh.
Workflow example |
|---|
|
Suspend scaling processes
The action identifier is aws.autoscaling.suspendProcesses.
Suspend one or more scaling processes for an Auto Scaling group. Use during deployments or maintenance windows to prevent unwanted scaling activity. If you omit scalingProcesses, all processes are suspended. Suspended processes remain suspended until explicitly resumed with aws.autoscaling.resumeProcesses.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
scalingProcesses | List | Optional. Processes to suspend. Omit to suspend all processes. Valid values: |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See suspend_processes — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example suspends Launch, Terminate, and HealthCheck processes before a deployment.
Workflow example |
|---|
|
Resume scaling processes
The action identifier is aws.autoscaling.resumeProcesses.
Resume one or more suspended scaling processes. Use after deployments or maintenance windows to restore normal scaling behavior. If you omit scalingProcesses, all suspended processes are resumed. If no processes are currently suspended, the call succeeds with no effect.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
scalingProcesses | List | Optional. Processes to resume. Omit to resume all suspended processes. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See resume_processes — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example resumes scaling processes after a deployment.
Workflow example |
|---|
|
Terminate an instance in a group
The action identifier is aws.autoscaling.terminateInstanceInAutoScalingGroup.
Terminate a specific instance in an Auto Scaling group while respecting lifecycle hooks. Set shouldDecrementDesiredCapacity to false to replace the instance automatically, or true to shrink the group.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
instanceId | String | Required. ID of the EC2 instance to terminate. |
|
shouldDecrementDesiredCapacity | Boolean | Required. If |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example terminates an unhealthy instance and launches a replacement.
Workflow example |
|---|
|
Move instances to standby
The action identifier is aws.autoscaling.enterStandby.
Move one or more instances into standby mode, taking them out of active rotation without terminating them. Use for maintenance on specific instances. Pair with aws.autoscaling.exitStandby to return instances to service.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
instanceIds | List | Optional. Instance IDs to move to standby. Omit to move all instances. |
|
shouldDecrementDesiredCapacity | Boolean | Required. If |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example moves an instance to standby for maintenance.
Workflow example |
|---|
|
Exit standby
The action identifier is aws.autoscaling.exitStandby.
Return one or more instances from standby mode back to active rotation. Pair with aws.autoscaling.enterStandby after maintenance is complete. If you omit instanceIds, all standby instances are returned to service.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
instanceIds | List | Optional. Instance IDs to return to active rotation. Omit to exit all standby instances. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example returns an instance from standby after maintenance.
Workflow example |
|---|
|
Create or update a scheduled action
The action identifier is aws.autoscaling.putScheduledUpdateGroupAction.
Create or update a scheduled scaling action for an Auto Scaling group. Use recurrence for cron-based schedules or startTime for one-shot changes. Pair with aws.autoscaling.deleteScheduledAction to remove actions.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
scheduledActionName | String | Required. Name of the scheduled action to create or update. |
|
startTime | String | Optional. ISO 8601 UTC timestamp for when the action takes effect. |
|
endTime | String | Optional. ISO 8601 UTC timestamp for when the recurring action stops. |
|
recurrence | String | Optional. Cron expression for recurring schedules. |
|
timeZone | String | Optional. IANA timezone for the recurrence cron expression. |
|
minSize | Int | Optional. Minimum group size to apply at the scheduled time. |
|
maxSize | Int | Optional. Maximum group size to apply at the scheduled time. |
|
desiredCapacity | Int | Optional. Desired capacity to apply at the scheduled time. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See put_scheduled_update_group_action — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example creates a nightly scale-down action.
Workflow example |
|---|
|
Delete a scheduled action
The action identifier is aws.autoscaling.deleteScheduledAction.
Delete a scheduled scaling action from an Auto Scaling group. Only one action can be deleted per call. If the action name does not exist the call fails with ValidationError. Deleting an action does not affect any scaling activity already in progress.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
scheduledActionName | String | Required. Name of the scheduled action to delete. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See delete_scheduled_action — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example deletes a scheduled scaling action.
Workflow example |
|---|
|
Update an Auto Scaling group
The action identifier is aws.autoscaling.updateAutoScalingGroup.
Update the configuration of an existing Auto Scaling group — min/max size, desired capacity, health check settings, launch template, and more. Use the parameters map to pass any additional fields from the boto3 update_auto_scaling_group API not listed below.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group to update. |
|
minSize | Int | Optional. New minimum group size. |
|
maxSize | Int | Optional. New maximum group size. |
|
desiredCapacity | Int | Optional. New desired instance count. |
|
defaultCooldown | Int | Optional. Default cooldown period in seconds. |
|
healthCheckType | String | Optional. Health check type. Allowed values: |
|
healthCheckGracePeriod | Int | Optional. Seconds after instance launch before health checks begin. |
|
parameters | Map | Optional. Any additional boto3 |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | AWS API response object. See update_auto_scaling_group — Boto3 documentation for the full response syntax. |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example updates min/max bounds, the health check type, and the launch template.
Workflow example |
|---|
|
Describe Auto Scaling groups
The action identifier is aws.autoscaling.describeAutoScalingGroups.
Describe one or more Auto Scaling groups, returning configuration and instance state. If you omit autoScalingGroupNames, all groups in the region are returned. Use maxRecords and nextToken to paginate large result sets.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupNames | List | Optional. Names of the groups to describe. Omit to return all groups in the region. |
|
maxRecords | Int | Optional. Maximum number of groups to return. Max 100. |
|
nextToken | String | Optional. Pagination token from a previous response. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example retrieves the desired capacity, min, max, and instance count for a group.
Workflow example |
|---|
|
Describe instance refreshes
The action identifier is aws.autoscaling.describeInstanceRefreshes.
Describe the status of one or more instance refreshes for an Auto Scaling group. Use to poll a refresh started by aws.autoscaling.startInstanceRefresh. If you omit instanceRefreshIds, all refreshes for the group are returned, newest first. Completed, cancelled, and failed refreshes are retained in history.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Required. Name of the Auto Scaling group. |
|
instanceRefreshIds | List | Optional. IDs of specific refreshes to describe. Omit to get all refreshes for the group. |
|
maxRecords | Int | Optional. Maximum number of refreshes to return. Default 50, max 100. |
|
nextToken | String | Optional. Pagination token from a previous response. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example polls the status of a refresh started in a previous step.
Workflow example |
|---|
|
Describe scaling activities
The action identifier is aws.autoscaling.describeScalingActivities.
Describe scaling activities for an Auto Scaling group, including in-progress and recently completed events. If you omit activityIds, all activities for the group are returned, newest first. Activities include both successful and failed scale-in and scale-out events.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Optional. Name of the group to query. Omit to return activities across all groups. |
|
activityIds | List | Optional. IDs of specific activities to return. |
|
includeDeletedGroups | Boolean | Optional. If |
|
maxRecords | Int | Optional. Maximum number of activities to return. Max 100. |
|
nextToken | String | Optional. Pagination token from a previous response. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains an |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example retrieves the 5 most recent scaling activities.
Workflow example |
|---|
|
Describe scheduled actions
The action identifier is aws.autoscaling.describeScheduledActions.
Describe scheduled scaling actions for an Auto Scaling group. If you omit scheduledActionNames, all actions for the group are returned. Filter by startTime and endTime to narrow results to a time window — these filters are ignored when scheduledActionNames is provided.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
awsRoleArn | String | Optional. IAM role ARN. The executor assumes this role via STS to authenticate with AWS. Recommended over static credentials. At least one authentication field is required. |
|
awsAccessKeyId | String | Optional. AWS access key ID. Must be passed as a secret reference. |
|
awsSecretAccessKey | String | Optional. AWS secret access key. Must be passed as a secret reference. |
|
awsSessionToken | String | Optional. AWS session token for temporary credentials. Must be passed as a secret reference. |
|
region | String | Required. AWS region where the Auto Scaling group is located. |
|
autoScalingGroupName | String | Optional. Name of the group to query. Omit to list actions across all groups. |
|
scheduledActionNames | List | Optional. Names of specific actions to return. Unknown names are silently ignored. |
|
startTime | String | Optional. ISO 8601 UTC timestamp lower bound for filtering results. |
|
endTime | String | Optional. ISO 8601 UTC timestamp upper bound for filtering results. |
|
maxRecords | Int | Optional. Maximum number of actions to return. Max 100. |
|
nextToken | String | Optional. Pagination token from a previous response. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
response | Object | Contains a |
success | Boolean |
|
errorMessage | String | Error message if the action failed. |
The following example lists all scheduled actions for a group.
Workflow example |
|---|
|