com.amazonaws.services.s3.model.AmazonS3Exception: The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: 9E47D0A340D2E04A)

GitHub | a-morales | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    AWS Keys in hadoop conf required when using IAM instance profiles.

    GitHub | 7 months ago | a-morales
    com.amazonaws.services.s3.model.AmazonS3Exception: The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: 9E47D0A340D2E04A)
  2. 0

    GitHub comment 158#172402749

    GitHub | 1 year ago | wmdoble
    com.amazonaws.services.s3.model.AmazonS3Exception: The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: 208479900C54DF6B), S3 Extended Request ID: My4p2YoPsjwlnXkEJUEz/kEOKq7oReX6CZmtvs8Uwa3656pl8FHVl1ejnrBXMVR26giFKWKWkgU=
  3. 0

    com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header

    GitHub | 1 year ago | jelez
    com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 9DBF5750XXXXX29A), S3 Extended Request ID: gaPPrdaUYPrRXXXXXrTWw2IZQk44bmeoa/gQDJT8CaQfFdmXXXXXEaG5dAYu9/UOv/7t6XXXXXE=
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 290#256195301

    GitHub | 6 months ago | lminerPlaid
    com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: 76BB66ADA28129D0, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: ULZBTfCaAN5ppjptDc3hlY2qneVVSgwMhBGhsF5QizOB0GPBaHAc7mXnIuTo9aLkyRduofRQiZ8=
  6. 0
    samebug tip
    Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.amazonaws.services.s3.model.AmazonS3Exception

    The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: 9E47D0A340D2E04A)

    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
  2. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1389)
    2. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:902)
    3. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:607)
    4. com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:376)
    5. com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:338)
    6. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:287)
    6 frames
  3. AWS Java SDK for Amazon S3
    AmazonS3Client.getBucketLifecycleConfiguration
    1. com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3826)
    2. com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3778)
    3. com.amazonaws.services.s3.AmazonS3Client.getBucketLifecycleConfiguration(AmazonS3Client.java:1925)
    4. com.amazonaws.services.s3.AmazonS3Client.getBucketLifecycleConfiguration(AmazonS3Client.java:1912)
    4 frames
  4. com.databricks.spark
    RedshiftRelation.buildScan
    1. com.databricks.spark.redshift.Utils$.checkThatBucketHasObjectLifecycleConfiguration(Utils.scala:127)
    2. com.databricks.spark.redshift.RedshiftRelation.buildScan(RedshiftRelation.scala:90)
    2 frames
  5. org.apache.spark
    DataSourceStrategy$$anonfun$8.apply
    1. org.apache.spark.sql.execution.datasources.DataSourceStrategy$$anonfun$8.apply(DataSourceStrategy.scala:260)
    2. org.apache.spark.sql.execution.datasources.DataSourceStrategy$$anonfun$8.apply(DataSourceStrategy.scala:260)
    2 frames