aws ec2 modify-instance-credit-specification
Modifies the credit option for CPU usage on a running or stopped burstable performance instance. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To modify the credit option for CPU usage of an instance
The following modify-instance-credit-specification example modifies the credit option for CPU usage of the specified instance in the specified region to "unlimited". Valid credit options are "standard" and "unlimited".
aws ec2 modify-instance-credit-specification --instance-credit-specifications "InstanceId=i-1234567890abcdef0,CpuCredits=unlimited"Identify--instance-credit-specificationsInformation about the credit option for CPU usage.Its output
{
"SuccessfulInstanceCreditSpecifications": [
{
"InstanceId": "i-1234567890abcdef0"
}
],
"UnsuccessfulInstanceCreditSpecifications": []
}For more information, see Configure burstable performance instances in the Amazon EC2 User Guide.
Options
--client-tokenA unique, case-sensitive token that you provide to ensure idempotency of your modification request.--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--instance-credit-specificationsInformation about the credit option for CPU usage.