

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::EC2::Instance CreditSpecification
<a name="aws-properties-ec2-instance-creditspecification"></a>

Specifies the credit option for CPU usage of a T instance.

`CreditSpecification` is a property of the [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) resource.

For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the *Amazon EC2 User Guide*.

## Syntax
<a name="aws-properties-ec2-instance-creditspecification-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-ec2-instance-creditspecification-syntax.json"></a>

```
{
  "[CPUCredits](#cfn-ec2-instance-creditspecification-cpucredits)" : String
}
```

### YAML
<a name="aws-properties-ec2-instance-creditspecification-syntax.yaml"></a>

```
  [CPUCredits](#cfn-ec2-instance-creditspecification-cpucredits): String
```

## Properties
<a name="aws-properties-ec2-instance-creditspecification-properties"></a>

`CPUCredits`  <a name="cfn-ec2-instance-creditspecification-cpucredits"></a>
The credit option for CPU usage of the instance.  
Valid values: `standard` \$1 `unlimited`  
T3 instances with `host` tenancy do not support the `unlimited` CPU credit option.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)