We uploaded a document to AWS S3 and generated a pre-signed URL using boto3 with an expiry time of 100 years.
The pre-signed URL we retrieved is http://my_document.s3.amazonaws.com/my_document.htm?Signature=AWS_GENERATED_SIGNATURE&Expires=4732867559&AWSAccessKeyId=MY_ACCESS_KEY
However, when we use the URL to access the document, we receive the following error:
<Error>
<Code>AccessDenied</Code>
<Message>
Invalid date (should be seconds since epoch): 4732867559
</Message>
<RequestId>D7F5624326124615</RequestId>
<HostId>
AWS_HOST_ID
</HostId>
</Error>
Why is AWS S3 refusing to open a document because of an expiry time value, which it itself allowed us to use to generate the pre-signed URL?
Has anybody here faced a similar issue while integrating with AWS S3 using boto3 ?