# AWS errors explained and fixed

What an AWS error message actually means, the usual causes ranked by how often they bite, and the commands that fix them.

138 guides

Diagram: Example diagrams from the AWS error fixes guides: Invalid principal in policy; ProvisionedThroughputExceededException…

## API Gateway

- [403 Forbidden: User is not authorized to access this resource](https://cloudconsole.dev/errors/api-gateway-403-forbidden)
- [429 Too Many Requests from API Gateway](https://cloudconsole.dev/errors/api-gateway-429-too-many-requests)
- [502 Bad Gateway: Malformed Lambda proxy response](https://cloudconsole.dev/errors/api-gateway-502-malformed-lambda-proxy-response)
- [504: Endpoint request timed out](https://cloudconsole.dev/errors/api-gateway-504-endpoint-request-timed-out)
- [Execution failed due to configuration error: Invalid permissions on Lambda function](https://cloudconsole.dev/errors/api-gateway-invalid-permissions-on-lambda)
- [Network error communicating with endpoint](https://cloudconsole.dev/errors/api-gateway-network-error-communicating-with-endpoint)
- [No 'Access-Control-Allow-Origin' header with API Gateway](https://cloudconsole.dev/errors/api-gateway-cors-error)
- [User is not authorized to access this resource with an explicit deny](https://cloudconsole.dev/errors/api-gateway-explicit-deny-lambda-authorizer)
- [{"message":"Missing Authentication Token"}](https://cloudconsole.dev/errors/api-gateway-missing-authentication-token)

## CloudFormation

- [Circular dependency between resources](https://cloudconsole.dev/errors/cloudformation-circular-dependency)
- [CloudFormation stack DELETE_FAILED](https://cloudconsole.dev/errors/cloudformation-delete-failed)
- [Export cannot be deleted as it is in use by another stack](https://cloudconsole.dev/errors/cloudformation-export-in-use)
- [No updates are to be performed](https://cloudconsole.dev/errors/cloudformation-no-updates-to-be-performed)
- [Requires capabilities: [CAPABILITY_IAM]](https://cloudconsole.dev/errors/cloudformation-requires-capabilities)
- [Resource already exists in stack](https://cloudconsole.dev/errors/cloudformation-resource-already-exists)
- [Stack is in ROLLBACK_COMPLETE state and can not be updated](https://cloudconsole.dev/errors/cloudformation-rollback-complete-cannot-be-updated)
- [Stack is in UPDATE_IN_PROGRESS state and can not be updated](https://cloudconsole.dev/errors/cloudformation-stack-in-progress-cannot-be-updated)
- [Template format error](https://cloudconsole.dev/errors/cloudformation-template-format-error)
- [UPDATE_ROLLBACK_FAILED](https://cloudconsole.dev/errors/cloudformation-update-rollback-failed)

## CloudFront

- [403 ERROR: The request could not be satisfied (CloudFront)](https://cloudconsole.dev/errors/cloudfront-request-could-not-be-satisfied)
- [CloudFront returns AccessDenied from an S3 origin (OAC / OAI)](https://cloudconsole.dev/errors/cloudfront-s3-access-denied)

## Credentials, permissions & CLI

- [AccessDenied with an explicit deny in a permissions boundary](https://cloudconsole.dev/errors/explicit-deny-permissions-boundary)
- [AccessDenied with an explicit deny in a service control policy](https://cloudconsole.dev/errors/explicit-deny-service-control-policy)
- [AccessDenied: User is not authorized to perform: sts:AssumeRole](https://cloudconsole.dev/errors/not-authorized-to-perform-sts-assumerole)
- [AccessDeniedException: User is not authorized to perform this action because no identity-based policy allows it](https://cloudconsole.dev/errors/accessdenied-no-identity-based-policy-allows)
- [ACM certificate stuck in Pending validation](https://cloudconsole.dev/errors/acm-certificate-pending-validation)
- [AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist](https://cloudconsole.dev/errors/sqs-nonexistentqueue)
- [Could not connect to the endpoint URL](https://cloudconsole.dev/errors/could-not-connect-to-endpoint-url)
- [denied: Your authorization token has expired. Reauthenticate and try again.](https://cloudconsole.dev/errors/ecr-authorization-token-expired)
- [Error loading SSO Token: Token for <profile> does not exist](https://cloudconsole.dev/errors/error-loading-sso-token)
- [Error when retrieving token from sso: Token has expired and refresh failed](https://cloudconsole.dev/errors/sso-token-expired-refresh-failed)
- [Error: configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found](https://cloudconsole.dev/errors/terraform-no-valid-credential-sources)
- [Error: Error acquiring the state lock](https://cloudconsole.dev/errors/terraform-error-acquiring-state-lock)
- [error: You must be logged in to the server (Unauthorized)](https://cloudconsole.dev/errors/eks-you-must-be-logged-in-to-the-server)
- [ExpiredToken: The security token included in the request is expired](https://cloudconsole.dev/errors/expiredtoken)
- [failed to assign an IP address to container (Amazon VPC CNI)](https://cloudconsole.dev/errors/eks-failed-to-assign-ip-address)
- [Invalid base64 error when calling aws lambda invoke](https://cloudconsole.dev/errors/invalid-base64-lambda-invoke)
- [InvalidChangeBatch: Tried to create resource record set but it already exists](https://cloudconsole.dev/errors/route53-invalidchangebatch-already-exists)
- [InvalidClientTokenId: The security token included in the request is invalid](https://cloudconsole.dev/errors/invalidclienttokenid)
- [InvalidSignatureException: Signature expired](https://cloudconsole.dev/errors/signature-expired-clock-skew)
- [KMS AccessDeniedException when reading an encrypted S3 object or secret](https://cloudconsole.dev/errors/kms-access-denied)
- [KMSInvalidStateException: key is pending deletion](https://cloudconsole.dev/errors/kms-key-pending-deletion)
- [MessageRejected: Email address is not verified. The following identities failed the check in region](https://cloudconsole.dev/errors/ses-email-address-not-verified)
- [name unknown: The repository with name does not exist in the registry with id](https://cloudconsole.dev/errors/ecr-repository-does-not-exist)
- [no basic auth credentials when pushing to Amazon ECR](https://cloudconsole.dev/errors/ecr-no-basic-auth-credentials)
- [NodeCreationFailure: Instances failed to join the kubernetes cluster](https://cloudconsole.dev/errors/eks-instances-failed-to-join-cluster)
- [NoRegionError: You must specify a region](https://cloudconsole.dev/errors/noregionerror-you-must-specify-a-region)
- [Read timeout on endpoint URL](https://cloudconsole.dev/errors/read-timeout-on-endpoint-url)
- [RequestLimitExceeded: Request limit exceeded (EC2 API)](https://cloudconsole.dev/errors/requestlimitexceeded-ec2)
- [ResourceNotFoundException: Secrets Manager can't find the specified secret](https://cloudconsole.dev/errors/secretsmanager-cant-find-secret)
- [RRSet of type CNAME with DNS name example.com. is not permitted at apex in zone](https://cloudconsole.dev/errors/route53-cname-not-permitted-at-apex)
- [SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided](https://cloudconsole.dev/errors/signaturedoesnotmatch)
- [SSL validation failed for https://... certificate verify failed](https://cloudconsole.dev/errors/ssl-validation-failed)
- [SSM Session Manager: TargetNotConnected](https://cloudconsole.dev/errors/ssm-start-session-targetnotconnected)
- [Step Functions States.Timeout / States.TaskFailed](https://cloudconsole.dev/errors/stepfunctions-states-timeout)
- [The config profile (name) could not be found](https://cloudconsole.dev/errors/config-profile-could-not-be-found)
- [The request must contain the parameter MessageGroupId](https://cloudconsole.dev/errors/sqs-messagegroupid-required)
- [The security token included in the request is invalid](https://cloudconsole.dev/errors/security-token-included-in-the-request-is-invalid)
- [ThrottlingException: Rate exceeded](https://cloudconsole.dev/errors/throttlingexception-rate-exceeded)
- [toomanyrequests: You have reached your pull rate limit](https://cloudconsole.dev/errors/docker-hub-toomanyrequests-pull-rate-limit)
- [Unable to locate credentials](https://cloudconsole.dev/errors/unable-to-locate-credentials)
- [Unable to parse config file: ~/.aws/config](https://cloudconsole.dev/errors/unable-to-parse-config-file)
- [UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message](https://cloudconsole.dev/errors/unauthorizedoperation-encoded-message)
- [Unknown output type: None](https://cloudconsole.dev/errors/unknown-output-type)
- [You can't create this secret because a secret with this name is already scheduled for deletion](https://cloudconsole.dev/errors/secretsmanager-secret-scheduled-for-deletion)

## DynamoDB

- [ConditionalCheckFailedException: The conditional request failed](https://cloudconsole.dev/errors/dynamodb-conditionalcheckfailed)
- [ProvisionedThroughputExceededException](https://cloudconsole.dev/errors/dynamodb-provisionedthroughputexceeded)
- [Query condition missed key schema element](https://cloudconsole.dev/errors/dynamodb-query-condition-missed-key-schema)
- [ResourceNotFoundException: Requested resource not found (DynamoDB)](https://cloudconsole.dev/errors/dynamodb-resourcenotfound)
- [TransactionCanceledException: Transaction cancelled, please refer cancellation reasons](https://cloudconsole.dev/errors/dynamodb-transactioncanceled)
- [ValidationException: Attribute name is a reserved keyword](https://cloudconsole.dev/errors/dynamodb-attribute-name-is-a-reserved-keyword)
- [ValidationException: Item size has exceeded the maximum allowed size](https://cloudconsole.dev/errors/dynamodb-item-size-exceeded)
- [ValidationException: The provided key element does not match the schema](https://cloudconsole.dev/errors/dynamodb-key-element-does-not-match-schema)

## EC2

- [DependencyViolation: resource has a dependent object](https://cloudconsole.dev/errors/ec2-dependencyviolation)
- [EC2 Instance Connect: Failed to connect to your instance](https://cloudconsole.dev/errors/ec2-instance-connect-failed)
- [EC2 instance status check failed](https://cloudconsole.dev/errors/ec2-instance-status-check-failed)
- [EC2 instance stuck in the stopping state](https://cloudconsole.dev/errors/ec2-instance-stuck-stopping)
- [EC2 system status check failed](https://cloudconsole.dev/errors/ec2-system-status-check-failed)
- [InsufficientInstanceCapacity: We currently do not have sufficient capacity](https://cloudconsole.dev/errors/ec2-insufficientinstancecapacity)
- [InvalidAMIID.NotFound: The image id does not exist](https://cloudconsole.dev/errors/ec2-invalidamiid-notfound)
- [InvalidInstanceID.NotFound: The instance ID does not exist](https://cloudconsole.dev/errors/ec2-invalidinstanceid-notfound)
- [Permission denied (publickey) when connecting to EC2 over SSH](https://cloudconsole.dev/errors/ec2-permission-denied-publickey)
- [ssh: connect to host ec2 port 22: Connection timed out](https://cloudconsole.dev/errors/ec2-ssh-connection-timed-out)
- [VcpuLimitExceeded: You have requested more vCPU capacity than your current vCPU limit](https://cloudconsole.dev/errors/ec2-vcpulimitexceeded)

## ECS

- [CannotPullContainerError: pull image manifest has been retried](https://cloudconsole.dev/errors/ecs-cannotpullcontainererror)
- [CannotStartContainerError: failed to create task for container](https://cloudconsole.dev/errors/ecs-cannotstartcontainererror)
- [ECS container exited with exit code 143 (SIGTERM)](https://cloudconsole.dev/errors/ecs-exit-code-143)
- [ECS deployment failed: Deployment Circuit Breaker was triggered](https://cloudconsole.dev/errors/ecs-deployment-circuit-breaker)
- [ECS Exec: TargetNotConnectedException when calling the ExecuteCommand operation](https://cloudconsole.dev/errors/ecs-execute-command-targetnotconnected)
- [ECS task stopped with exit code 139 (segmentation fault)](https://cloudconsole.dev/errors/ecs-exit-code-139)
- [ECS task stopped: Essential container exited with exit code 137](https://cloudconsole.dev/errors/ecs-exit-code-137)
- [ECS task stopped: Essential container in task exited with exit code 1](https://cloudconsole.dev/errors/ecs-exit-code-1)
- [ECS was unable to assume the role that was provided for this task](https://cloudconsole.dev/errors/ecs-unable-to-assume-role)
- [Essential container in task exited](https://cloudconsole.dev/errors/ecs-essential-container-exited)
- [OutOfMemoryError: Container killed due to memory usage](https://cloudconsole.dev/errors/ecs-outofmemoryerror)
- [ResourceInitializationError: unable to pull secrets or registry auth](https://cloudconsole.dev/errors/ecs-resourceinitializationerror)
- [service was unable to place a task because no container instance met all of its requirements](https://cloudconsole.dev/errors/ecs-unable-to-place-task)
- [Task failed container health checks (Amazon ECS)](https://cloudconsole.dev/errors/ecs-task-failed-container-health-checks)
- [Task failed ELB health checks in target group](https://cloudconsole.dev/errors/ecs-task-failed-elb-health-checks)

## Lambda

- [CodeStorageExceededException: Code storage limit exceeded](https://cloudconsole.dev/errors/lambda-codestorageexceeded)
- [Invalid request provided: Queue visibility timeout is less than Function timeout](https://cloudconsole.dev/errors/lambda-sqs-visibility-timeout-less-than-function-timeout)
- [Lambda was unable to configure your environment variables: exceeded the 4KB limit](https://cloudconsole.dev/errors/lambda-environment-variables-exceeded-4kb)
- [Lambda: Task timed out after 3.00 seconds](https://cloudconsole.dev/errors/lambda-task-timed-out)
- [RequestEntityTooLargeException: Request must be smaller than 6291456 bytes](https://cloudconsole.dev/errors/lambda-requestentitytoolarge)
- [ResourceConflictException: The operation cannot be performed at this time. An update is in progress](https://cloudconsole.dev/errors/lambda-resourceconflictexception)
- [Runtime exited with error: signal: killed (Lambda out of memory)](https://cloudconsole.dev/errors/lambda-out-of-memory)
- [Runtime.ExitError: RequestId ... Error: Runtime exited with error](https://cloudconsole.dev/errors/lambda-runtime-exiterror)
- [Runtime.HandlerNotFound: index.handler is undefined or not exported](https://cloudconsole.dev/errors/lambda-runtime-handlernotfound)
- [Runtime.ImportModuleError: Unable to import module](https://cloudconsole.dev/errors/lambda-runtime-importmoduleerror)
- [Runtime.InvalidEntrypoint](https://cloudconsole.dev/errors/lambda-runtime-invalidentrypoint)
- [The provided execution role does not have permissions to call CreateNetworkInterface on EC2](https://cloudconsole.dev/errors/lambda-execution-role-createnetworkinterface)
- [TooManyRequestsException: Rate Exceeded (Lambda throttling)](https://cloudconsole.dev/errors/lambda-toomanyrequests-rate-exceeded)
- [Unzipped size must be smaller than 262144000 bytes](https://cloudconsole.dev/errors/lambda-unzipped-size-too-large)

## Load balancers

- [ALB 502 Bad Gateway](https://cloudconsole.dev/errors/alb-502-bad-gateway)
- [ALB 503 Service Temporarily Unavailable](https://cloudconsole.dev/errors/alb-503-service-unavailable)
- [ALB 504 Gateway Timeout](https://cloudconsole.dev/errors/alb-504-gateway-timeout)
- [ALB target health check failed (unhealthy targets)](https://cloudconsole.dev/errors/alb-targets-unhealthy)

## RDS

- [Could not connect to RDS: connection timed out](https://cloudconsole.dev/errors/rds-connection-timed-out)
- [ERROR 1045 (28000): Access denied for user on RDS MySQL](https://cloudconsole.dev/errors/rds-mysql-access-denied-for-user)
- [FATAL: password authentication failed for user (RDS PostgreSQL)](https://cloudconsole.dev/errors/rds-postgres-password-authentication-failed)
- [RDS instance in incompatible-parameters state](https://cloudconsole.dev/errors/rds-incompatible-parameters)
- [RDS instance in storage-full state](https://cloudconsole.dev/errors/rds-storage-full)
- [Too many connections on RDS (MySQL / PostgreSQL)](https://cloudconsole.dev/errors/rds-too-many-connections)

## S3

- [AccessControlListNotSupported: The bucket does not allow ACLs](https://cloudconsole.dev/errors/s3-accesscontrollistnotsupported)
- [AccessDenied: Request has expired (presigned URL)](https://cloudconsole.dev/errors/s3-request-has-expired)
- [An error occurred (403) when calling the HeadObject operation: Forbidden](https://cloudconsole.dev/errors/s3-403-forbidden-headobject)
- [AuthorizationHeaderMalformed: the region 'us-east-1' is wrong; expecting 'eu-west-2'](https://cloudconsole.dev/errors/s3-authorizationheadermalformed)
- [BucketAlreadyExists: The requested bucket name is not available](https://cloudconsole.dev/errors/s3-bucketalreadyexists)
- [BucketNotEmpty: The bucket you tried to delete is not empty](https://cloudconsole.dev/errors/s3-bucketnotempty)
- [Invalid principal in policy](https://cloudconsole.dev/errors/s3-malformedpolicy-invalid-principal)
- [InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records](https://cloudconsole.dev/errors/s3-invalidaccesskeyid)
- [InvalidObjectState: The operation is not valid for the object's storage class](https://cloudconsole.dev/errors/s3-invalidobjectstate)
- [NoSuchBucket: The specified bucket does not exist](https://cloudconsole.dev/errors/s3-nosuchbucket)
- [NoSuchKey: The specified key does not exist](https://cloudconsole.dev/errors/s3-nosuchkey)
- [PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint](https://cloudconsole.dev/errors/s3-permanentredirect)
- [S3 AccessDenied: Access Denied when calling an S3 operation](https://cloudconsole.dev/errors/s3-access-denied)
- [SlowDown: Please reduce your request rate (503)](https://cloudconsole.dev/errors/s3-slowdown)
- [Unable to validate the following destination configurations](https://cloudconsole.dev/errors/s3-unable-to-validate-destination-configurations)

---

Source: https://cloudconsole.dev/errors/

CloudConsole is an independent iPhone and Android app for Amazon Web Services by Cloudconcur Ltd. It is not affiliated with Amazon Web Services.
