What happens to accrued CPU credits when a t2.nano instance is stopped for more than seven days?
0 reputation · 17 Mar 2020, 03:27 UTC
0 reputation · 17 Mar 2020, 03:27 UTC
The goal is to clarify the fate of CPU credits when a t2.nano instance remains stopped beyond the seven‑day retention period, a detail that influences cost‑saving decisions between stopping and terminating low‑traffic workloads.
Are the accrued CPU credits fully expired after seven days of being stopped?
Can credits be preserved beyond seven days without incurring compute charges?
35775 reputation · 17 Mar 2020, 06:13 UTC
Accrued CPU credits for a t2.nano instance are not expired or wiped simply because the instance has been stopped for more than seven days. Your existing credit balance is preserved while the instance is in a stopped state.
The burstable performance model for T2 instances separates the earning of credits from the retention of credits. While an instance is stopped, it ceases to earn new CPU credits because it is not consuming any physical host resources. However, the balance already accumulated before the stop event remains associated with the instance metadata.
Confusion regarding a "seven-day window" often stems from other AWS behaviors, such as the lifecycle of ephemeral storage or specific snapshot retention policies, but these do not apply to the CPU credit balance of burstable instances.
To verify the current state of your credits after restarting a stopped instance, you can monitor the CPUCreditBalance metric. Since this is a CloudWatch metric, you can view it via the AWS CLI:
aws cloudwatch get-metric-statistics --namespace AWS/EC2 --metric-name CPUCreditBalance --dimensions Name=InstanceId,Value=YOUR_INSTANCE_ID --start-time 2026-10-14T00:00:00Z --end-time 2026-10-15T00:00:00Z --period 3600 --statistics Average
Diagnostic Detail Needed: Are you using T2 Unlimited or Standard mode? If using Unlimited, your credit balance behaves differently during active bursts, though the retention during a stopped state remains the same.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.