AWS EC2 Auto Scaling Connector

Latest Dynatrace

Review the required AWS permissions and condition keys of the AWS EC2 Auto Scaling Connector actions to ensure that you grant Dynatrace only a minimum set of permissions. For more information, see AWS documentation.

Attach Instances

Attaches one or more EC2 instances to the specified Auto Scaling group.

For more information, see the official documentation of Attach Instances.

Required AWS permission: autoscaling:AttachInstances.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
InstanceIds
string[]
The IDs of the instances.
optional

Output

Returns fields as described in AttachInstancesCommandOutput.

Describe Auto Scaling Groups

Gets information about the Auto Scaling groups in the account and Region.

For more information, see the official documentation of Describe Auto Scaling Groups.

Required AWS permission: autoscaling:DescribeAutoScalingGroups.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupNames
string[]
The names of the Auto Scaling groups.
optional
Filters
Filter[]
One or more filters to limit the results based on specific tags.
optional
MaxRecords
number
The maximum number of items to return with this call.
optional

Output

Returns fields as described in DescribeAutoScalingGroupsCommandOutput.

Describe Auto Scaling Instances

Gets information about the Auto Scaling instances in the account and Region.

For more information, see the official documentation of Describe Auto Scaling Instances.

Required AWS permission: autoscaling:DescribeAutoScalingInstances.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
InstanceIds
string[]
The IDs of the instances.
optional
MaxRecords
number
The maximum number of items to return with this call.
optional

Output

Returns fields as described in DescribeAutoScalingInstancesCommandOutput.

Describe Instance Refreshes

Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks.

For more information, see the official documentation of Describe Instance Refreshes.

Required AWS permission: autoscaling:DescribeInstanceRefreshes.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
InstanceRefreshIds
string[]
One or more instance refresh IDs.
optional
MaxRecords
number
The maximum number of items to return with this call.
optional

Output

Returns fields as described in DescribeInstanceRefreshesCommandOutput.

Describe Scaling Activities

Gets information about the scaling activities in the account and Region.

For more information, see the official documentation of Describe Scaling Activities.

Required AWS permission: autoscaling:DescribeScalingActivities.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
ActivityIds
string[]
The activity IDs of the desired scaling activities.
optional
AutoScalingGroupName
string
The name of the Auto Scaling group.
optional
MaxRecords
number
The maximum number of items to return with this call.
optional

Output

Returns fields as described in DescribeScalingActivitiesCommandOutput.

Detach Instances

Removes one or more instances from the specified Auto Scaling group.

For more information, see the official documentation of Detach Instances.

Required AWS permission: autoscaling:DetachInstances.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
ShouldDecrementDesiredCapacity
boolean
Indicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.
required
InstanceIds
string[]
The IDs of the instances.
optional

Output

Returns fields as described in DetachInstancesCommandOutput.

Execute Policy

Executes the specified policy.

For more information, see the official documentation of Execute Policy.

Required AWS permission: autoscaling:ExecutePolicy.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
PolicyName
string
The name or ARN of the policy.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
optional
BreachThreshold
number
The breach threshold for the alarm.
optional
HonorCooldown
boolean
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.
optional
MetricValue
number
The metric value to compare to BreachThreshold.
optional

Output

Returns fields as described in ExecutePolicyCommandOutput.

Set Desired Capacity

Sets the size of the specified Auto Scaling group.

For more information, see the official documentation of Set Desired Capacity.

Required AWS permission: autoscaling:SetDesiredCapacity.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
DesiredCapacity
number
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
required
HonorCooldown
boolean
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.
optional

Output

Returns fields as described in SetDesiredCapacityCommandOutput.

Start Instance Refresh

Starts an instance refresh.

For more information, see the official documentation of Start Instance Refresh.

Required AWS permission: autoscaling:StartInstanceRefresh.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
DesiredConfiguration
DesiredConfiguration
The desired configuration.
optional
Preferences
RefreshPreferences
Sets your preferences for the instance refresh so that it performs as expected when you start it.
optional

Output

Returns fields as described in StartInstanceRefreshCommandOutput.

Update Auto Scaling Group

We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.

For more information, see the official documentation of Update Auto Scaling Group.

Required AWS permission: autoscaling:UpdateAutoScalingGroup.

Optional AWS permissions:

  • iam:PassRole

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
AutoScalingGroupName
string
The name of the Auto Scaling group.
required
DesiredCapacity
number
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
optional
MaxSize
number
The maximum size of the Auto Scaling group.
optional
MinSize
number
The minimum size of the Auto Scaling group.
optional

Output

Returns fields as described in UpdateAutoScalingGroupCommandOutput.