☁️ AWS Errors

33 error notes

awsintermediate

Fix AWS Cognito 'Refresh Token has expired' and Stop Random Logouts

NotAuthorizedException: Refresh Token has expired
awscognitosecurityauthentication
awsintermediate

Fixing AWS Lambda 'Code uncompressed size is greater than max allowed size' during deployment

An error occurred (InvalidParameterValueException) when calling the UpdateFunctionCode operation: Code uncompressed size is greater than 262144000 bytes
aws-lambdadeploymentserverless
awsbeginner

Fixing AWS Step Functions States.HeartbeatTimeout: Why Tasks Fail at 60 Seconds

States.HeartbeatTimeout: State machine execution failed: Task timed out after 60 seconds
awsstep-functionslambdaserverless
awsintermediate

Fixing AWS VPC Peering: Resolving 'Request timeout' and 'No route to host'

Request timeout for icmp_seq β€” no route to host across VPC peering connection
awsvpcpeeringnetworking
awsintermediate

Fix 'InsufficientInstanceCapacity' Error When Launching or Starting EC2 Instances

An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation: We currently do not have sufficient capacity in the Availability Zone you requested.
awsec2capacitydevops
awsbeginner

Fix AWS CLI 'RequestExpired' Error Caused by System Clock Skew

RequestExpired: Request has expired. (Service: AmazonS3; Status Code: 403, Error Code: RequestExpired)
aws-clitime-syncntpauthentication
awsintermediate

Fix 'connect: No route to host' on AWS EC2 β€” Missing Internet Gateway or NAT Gateway

connect: No route to host
awsvpcec2internet-gateway
awsintermediate

Recovering from AWS RDS 'storage-full': Immediate Fixes and Long-term Prevention

DB instance is in storage-full state. The instance may not be able to accept connections or perform writes.
awsrdsstoragedatabase
awsintermediate

Fixing AWS ECR Push Error: 'no basic auth credentials'

Error response from daemon: no basic auth credentials
ecrdockerauthenticationaws-cli
awsintermediate

Fixing the EKS 'Unauthorized' Error: Kubeconfig and IAM Troubleshooting

error: You must be logged in to the server (Unauthorized)
ekskubectlkubeconfigiam
awsintermediate

Fixing Boto3 ThrottlingException: Handle 'Rate exceeded' Errors in AWS Python Scripts

ThrottlingException: Rate exceeded
throttlingboto3apiaws
awsintermediate

Fix AWS CloudFront 403 ERROR on S3 Origin β€” OAC Bucket Policy Not Configured

403 ERROR: The request could not be satisfied. Request blocked. We can't connect to the server for this app or website at this time.
cloudfronts3oacbucket-policy
awsintermediate

Fix AWS S3 403 Forbidden: HeadObject Operation Blocked by Bucket Policy or ACL

An error occurred (403) when calling the HeadObject operation: Forbidden
awss3bucket-policyacl
awsintermediate

Fix AWS Elastic Beanstalk Deploy Failed: WSGIPath Does Not Exist & Health Check Severe

ERROR: Your WSGIPath refers to a file that does not exist. / Instance deployment failed. For details, see 'eb-engine.log'. / Environment health has transitioned from Ok to Severe
awselastic-beanstalkhealth-checkdeploy
awsintermediate

Fix AWS ECS ResourceInitializationError: unable to retrieve ecr registry auth

ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed
ecsecrdockeriam
awsintermediate

Fix AWS CodeDeploy Deployment Failed: Script at specified location failed to complete in 300 seconds

Script at specified location: scripts/before_install.sh failed to complete in 300 seconds
codedeploydeploymentlifecycle-hooktimeout
awsintermediate

Fixing SQS Duplicate Messages and ReceiptHandleIsInvalidException

com.amazonaws.services.sqs.model.ReceiptHandleIsInvalidException: The input receipt handle is not a valid receipt handle (Service: AmazonSQS; Status Code: 404)
aws-sqsvisibility-timeoutdistributed-systemscloudwatch
awsintermediate

Fix AWS Secrets Manager EndpointConnectionError: Could Not Connect to Endpoint URL (VPC Endpoint Missing)

EndpointConnectionError: Could not connect to the endpoint URL: https://secretsmanager.us-east-1.amazonaws.com / ConnectionError: HTTPSConnectionPool: Max retries exceeded
awssecrets-managervpcendpoint
awsintermediate

Fixing AWS CloudWatch AccessDeniedException on PutLogEvents

An error occurred (AccessDeniedException) when calling the PutLogEvents operation: User: arn:aws:sts::123456789012:assumed-role/MyAppRole is not authorized to perform: logs:PutLogEvents on resource: arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/my-func:*
awscloudwatchiamtroubleshooting
awsbeginner

Fixing the AWS API Gateway CORS Error: 'No Access-Control-Allow-Origin' Header

Access to fetch at 'https://xxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/prod/resource' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
api-gatewaycorslambdaaws
awsbeginner

Fix AWS Lambda 'Runtime.ImportModuleError: No module named requests' When Deploying Without Dependencies

Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'requests'
lambdapythonlayersdeployment
awsbeginner

Fix AWS SES MessageRejected: Email Address Not Verified (Sandbox Mode)

MessageRejected: Email address is not verified. The following identities failed the check in region US-EAST-1: recipient@example.com
sesemailsandboxsmtp
awsbeginner

Fix AWS CLI Error 'InvalidClientTokenId': The Security Token Included in the Request is Invalid

An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.
awscliiamaccess-key
awsintermediate

Fix ProvisionedThroughputExceededException in AWS DynamoDB

ProvisionedThroughputExceededException: The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API.
dynamodbthroughputcapacityaws
awsintermediate

Fix AWS ALB 503 Service Unavailable: No Healthy Targets in Target Group

503 Service Temporarily Unavailable - No healthy upstream
albec2health-checkload-balancer
awsbeginner

Fix AWS S3 NoSuchBucket Error: An error occurred (NoSuchBucket) when calling the operation

An error occurred (NoSuchBucket) when calling the operation
awss3bucketnotfound
awsintermediate

Fix CloudFormation "The stack is in an UPDATE_ROLLBACK_FAILED state and can not be updated"

The stack is in an UPDATE_ROLLBACK_FAILED state and can not be updated.
AWSCloudFormationstackrollback
awsintermediate

Fix AWS Lambda "Task timed out after 3.00 seconds" Error

Task timed out after 3.00 seconds
awslambdatimeoutfunction
awsintermediate

Fix AWS RDS "FATAL: too many connections for role" Error

FATAL: too many connections for role
awsrdsconnectionpostgresql
awsintermediate

Fix AWS S3 Error: Your proposed upload exceeds the maximum allowed object size

Your proposed upload exceeds the maximum allowed object size.
AWSS3uploadsize limit
awsintermediate

Fix EC2 "Instance reachability check failed" (1/2 Status Checks Failed)

Instance reachability check failed (1/2 status checks failed)
AWSEC2status checktroubleshooting
awsintermediate

Fix InvalidParameterValue: The instance type is not supported in this region (AWS EC2)

InvalidParameterValue: The instance type is not supported in this region
awsec2instanceregion
awsintermediate

Fixing AWS AccessDenied: An error occurred (AccessDenied) when calling the operation: Access Denied

An error occurred (AccessDenied) when calling the operation: Access Denied