The steps for launching, monitoring, and modifying burstable performance instances (T instances) are similar. The key difference is the default credit specification when they launch.
Each T instance family comes with the following default credit specification:
-
T4g, T3a, and T3 instances launch as
unlimited
-
T3 instances on a Dedicated Host can only launch as
standard
-
T2 instances launch as
standard
You can change the default credit specification for the account.
Contents
Launch a burstable performance
instance as Unlimited or Standard
You can launch your T instances as unlimited
or standard
using the Amazon EC2 console, an AWS SDK, a command line tool, or with an Auto Scaling
group.
The following procedures describe how to use the EC2 console or the AWS CLI. For information about using an Auto Scaling group, see Use an Auto Scaling group to launch a burstable performance instance as Unlimited.
To launch a T instance as Unlimited or Standard
-
Follow the procedure to launch an instance.
-
Under Instance type, select a T instance type.
-
Expand Advanced details, and for Credit specification, select a credit specification. If you do not make a selection, the default is used, which is
standard
for T2, andunlimited
for T4g, T3a, and T3. -
In the Summary panel, review your instance configuration, and then choose Launch instance. For more information, see Launch an EC2 instance using the launch instance wizard in the console.
Use an Auto Scaling group to
launch a burstable performance instance as Unlimited
When T instances are launched or started, they require CPU credits for a good
bootstrapping experience. If you use an Auto Scaling group to launch your instances, we
recommend that you configure your instances as unlimited
. If you do, the
instances use surplus credits when they are automatically launched or restarted by the
Auto Scaling group. Using surplus credits prevents performance restrictions.
Create a launch template
You must use a launch template for launching
instances as unlimited
in an Auto Scaling group. A launch configuration does not
support launching instances as unlimited
.
Note
unlimited
mode is not supported for T3 instances that are launched
on a Dedicated Host.
To create a launch template that launches instances as Unlimited
-
Follow the Create a launch template using advanced settings procedure in the Amazon EC2 Auto Scaling User Guide.
-
In Launch template contents, for Instance type, choose an instance size.
-
To launch instances as
unlimited
in an Auto Scaling group, under Advanced details, for Credit specification, choose Unlimited. -
When you've finished defining the launch template parameters, choose Create launch template.
Associate an Auto Scaling group with a launch template
To associate the launch template with an Auto Scaling group, create the Auto Scaling group using the launch template, or add the launch template to an existing Auto Scaling group.
To create an Auto Scaling group using a launch template
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
On the navigation bar at the top of the screen, select the same Region that you used when you created the launch template.
-
In the navigation pane, choose Auto Scaling Groups, Create Auto Scaling group.
-
Choose Launch Template, select your launch template, and then choose Next Step.
-
Complete the fields for the Auto Scaling group. When you've finished reviewing your configuration settings on the Review page, choose Create Auto Scaling group. For more information, see Creating an Auto Scaling Group Using a Launch Template in the Amazon EC2 Auto Scaling User Guide.
To add a launch template to an existing Auto Scaling group
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
On the navigation bar at the top of the screen, select the same Region that you used when you created the launch template.
-
In the navigation pane, choose Auto Scaling Groups.
-
From the Auto Scaling group list, select an Auto Scaling group, and choose Actions, Edit.
-
On the Details tab, for Launch Template, choose a launch template, and then choose Save.
View the credit specification
of a burstable performance instance
You can view the credit specification (unlimited
or
standard
) of a running or stopped T instance.
To view the credit specification of a T instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the left navigation pane, choose Instances.
-
Select the instance.
-
Choose Details and view the Credit specification field. The value is either
unlimited
orstandard
.
Modify the credit specification
of a burstable performance instance
You can switch the credit specification of a running or stopped T instance at any
time between unlimited
and standard
.
Note that in unlimited
mode, an instance can spend surplus credits,
which might incur an additional charge. For more information, see Surplus credits can incur
charges.
To modify the credit specification of a T instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the left navigation pane, choose Instances.
-
Select the instance. To modify the credit specification for several instances at one time, select all applicable instances.
-
Choose Actions, Instance settings, Change credit specification. This option is enabled only if you selected a T instance.
-
To change the credit specification to
unlimited
, select the checkbox next to the instance ID. To change the credit specification tostandard
, clear the checkbox next to the instance ID.
Set the default credit specification for the account
Each T instance family comes with a default credit specification. You can change the default credit specification for each T instance family at the account level per AWS Region.
If you use the launch instance wizard in the EC2 console to launch instances, the value you select for the credit specification overrides the account-level default credit specification. If you use the AWS CLI to launch instances, all new T instances in the account launch using the default credit specification. The credit specification for existing running or stopped instances is not affected.
Consideration
The default credit specification for an instance family can be modified only once in a rolling 5-minute period, and up to four times in a rolling 24-hour period.
To set the default credit specification at the account level per Region
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
To change the AWS Region, use the Region selector in the upper-right corner of the page.
-
On the left navigation pane, choose EC2 Dashboard.
-
From Account attributes, choose Default credit specification.
-
Choose Manage.
-
For each instance family, choose Unlimited or Standard, and then choose Update.
View
the default credit specification
You can view the default credit specification of a T instance family at the account level per AWS Region.
To view the default credit specification at the account level
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
To change the AWS Region, use the Region selector in the upper-right corner of the page.
-
On the left navigation pane, choose EC2 Dashboard.
-
From Account attributes, choose Default credit specification.