All services that read encrypted S3 objects and secrets fail with "KMSInvalidStateException: arn:aws:kms:...:key/... is pending deletion."
AdvancedTroubleshootingCloud provider issues
Answer
Likely causes → Someone scheduled the customer-managed KMS key for deletion (a cleanup script, or Terraform destroying a resource that owned the key). While pending deletion, the key can't be used, so every decrypt fails. Once the waiting period (7–30 days) ends, the data encrypted with it is gone for good.
Diagnose →
aws kms describe-key --key-id $KEY --query 'KeyMetadata.[KeyState,DeletionDate]'
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ScheduleKeyDeletion
Fix → Cancel the deletion and re-enable the key right away:
aws kms cancel-key-deletion --key-id $KEY
aws kms enable-key --key-id $KEY
Then remove it from whatever will try to delete it again (Terraform state, cleanup job).
Prevent → Deny kms:ScheduleKeyDeletion for all but a break-glass role via SCP or key policy, alarm on the CloudTrail event, use the 30-day waiting period, and keep prevent_destroy on key resources.
More on Cloud provider issues
A deploy script and several services start failing with "An error occurred (ThrottlingException) when calling the DescribeInstances operation: Rate exceeded".BeginnerThe Auto Scaling group can't launch new instances during a traffic spike; activity history says "We currently do not have sufficient c6i.4xlarge capacity in the Availability Zone you requested."BeginnerScaling out fails with "You have requested more vCPU capacity than your current vCPU limit of 256 allows for the instance bucket that the specified instance type belongs to."BeginnerThe AWS Health Dashboard reports increased error rates in `use1-az4`, and your ALB targets in that AZ are timing out intermittently.IntermediateServices in private subnets randomly fail outbound calls to a partner API; CloudWatch shows `ErrorPortAllocation` rising on the NAT gateway.AdvancedA data pipeline writing millions of small objects to S3 starts failing with "503 Slow Down: Please reduce your request rate."Intermediate