`Error: creating EC2 Instance: VcpuLimitExceeded: You have requested more vCPU capacity than your current vCPU limit`.
BeginnerTroubleshootingAuthentication and Cloud API Errors
Answer
Likely causes → Service quota for the instance family (On-Demand Standard instances counted in vCPUs) is reached; new accounts start with low limits.
Diagnose →
aws service-quotas get-service-quota --service-code ec2 --quota-code L-1216C47A
Fix → Request an increase (Service Quotas console or request-service-quota-increase), or use smaller/fewer instances.
Prevent → Manage quota requests per account in your account-vending process.
More on Authentication and Cloud API Errors
`Error: No valid credential sources found` followed by `no EC2 IMDS role found ... context deadline exceeded`.Beginner`Error: Cannot assume IAM Role` — `api error AccessDenied: User: arn:aws:iam::111111111111:user/ci is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::222222222222:role/terraform`.IntermediateGitHub Actions: `Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity`.IntermediateGitHub Actions log says `It looks like you might be trying to authenticate with OIDC. Did you mean to set the id-token permission?`BeginnerApplies that run longer than an hour fail with `ExpiredToken: The security token included in the request is expired`.Intermediate`InvalidClientTokenId: The security token included in the request is invalid.`Beginner