- My goal: Get pre-signed urls for s3 objects with an expiry value of 604800 seconds
- Issue: The expiry is always set to 900 secs
- Steps I've taken to troubleshoot:
Followed the docs: Amazon S3 query tutorial | Retool Docs
Here is my query:
I also tried other values such at 60, 300, 5000 but it always comes out with a link expiry of 900 seconds
The link does work, but it expires too quickly.
- Additional info: (Cloud or Self-hosted, Screenshots)
My AWS IAM Policy is:
{
Version = "2012-10-17"
Statement = [
{
Action = [
"s3:GetObject",
"s3:GetObjectAttributes",
"s3:GetObjectVersion",
"s3:ListBucket",
],
Effect = "Allow",
Resource = [
"arn:aws:s3:::<bucket>",
"arn:aws:s3:::<bucket>/*",
],
},
]
}