Skip to content

Instantly share code, notes, and snippets.

@shenoy-anurag
Created June 15, 2022 16:45
Show Gist options
  • Save shenoy-anurag/179f90ddb58e96e911151046d72bfc81 to your computer and use it in GitHub Desktop.
Save shenoy-anurag/179f90ddb58e96e911151046d72bfc81 to your computer and use it in GitHub Desktop.
Please provide the AWS S3 Bucket Region: us-east-2
Use AWS Signature Version 4?[Y/n] Y
is_aws_signature_v4: True
Testing Connection...
[OK] Connection To S3 Account
[OK] Write Permissions
[ERROR] Read Permissions
Error Connecting to S3: Please check you have read permissions on the S3 bucket.
Details: Traceback (most recent call last):
File "/Users/anurags/Projects/DataOps/diffgram/install.py", line 290, in validate_s3_connection
raise Exception(
Exception: Error when accessing presigned URL: Status(403). Error: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>AKIAVKVOBWKEPCBCK4PE</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256
20220615T071059Z
20220615/us-east-2/s3/aws4_request
c0fcbef5f5581f480460b40654a1007d83536076e1277af1a273065c76915777</StringToSign><SignatureProvided>ae9b2a3851661a76646d747e6d71f9a3905aab8560d00d0cba21ab96d5e26dd0</SignatureProvided><StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 32 32 30 36 31 35 54 30 37 31 30 35 39 5a 0a 32 30 32 32 30 36 31 35 2f 75 73 2d 65 61 73 74 2d 32 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 63 30 66 63 62 65 66 35 66 35 35 38 31 66 34 38 30 34 36 30 62 34 30 36 35 34 61 31 30 30 37 64 38 33 35 33 36 30 37 36 65 31 32 37 37 61 66 31 61 32 37 33 30 36 35 63 37 36 39 31 35 37 37 37</StringToSignBytes><CanonicalRequest>GET
/diffgram_test_file.txt
X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAVKVOBWKEPCBCK4PE%2F20220615%2Fus-east-2%2Fs3%2Faws4_request&amp;X-Amz-Date=20220615T071059Z&amp;X-Amz-Expires=518400&amp;X-Amz-SignedHeaders=host
host:diffgram-research.s3.us-east-2.amazonaws.com
host
UNSIGNED-PAYLOAD</CanonicalRequest><CanonicalRequestBytes>47 45 54 0a 2f 64 69 66 66 67 72 61 6d 5f 74 65 73 74 5f 66 69 6c 65 2e 74 78 74 0a 58 2d 41 6d 7a 2d 41 6c 67 6f 72 69 74 68 6d 3d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 26 58 2d 41 6d 7a 2d 43 72 65 64 65 6e 74 69 61 6c 3d 41 4b 49 41 56 4b 56 4f 42 57 4b 45 50 43 42 43 4b 34 50 45 25 32 46 32 30 32 32 30 36 31 35 25 32 46 75 73 2d 65 61 73 74 2d 32 25 32 46 73 33 25 32 46 61 77 73 34 5f 72 65 71 75 65 73 74 26 58 2d 41 6d 7a 2d 44 61 74 65 3d 32 30 32 32 30 36 31 35 54 30 37 31 30 35 39 5a 26 58 2d 41 6d 7a 2d 45 78 70 69 72 65 73 3d 35 31 38 34 30 30 26 58 2d 41 6d 7a 2d 53 69 67 6e 65 64 48 65 61 64 65 72 73 3d 68 6f 73 74 0a 68 6f 73 74 3a 64 69 66 66 67 72 61 6d 2d 72 65 73 65 61 72 63 68 2e 73 33 2e 75 73 2d 65 61 73 74 2d 32 2e 61 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 0a 0a 68 6f 73 74 0a 55 4e 53 49 47 4e 45 44 2d 50 41 59 4c 4f 41 44</CanonicalRequestBytes><RequestId>5ZC5YHFZ8P6RAXXA</RequestId><HostId>YOauGA4hYGP4w52SSRQwhzzDDBmItpx8IlQaF2QeWsbzC2gvGwrQRMKV0ztXleNsem3Id6X5lPc=</HostId></Error>
Please update permissions and try again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment