Reputation: 551
Is it possible to invalidate or revoke an AWS Cloudfront Signed URL after it has been created?
We want to be able to revoke a signed URL on-demand, not necessarily when a preset timeout happens.
Upvotes: 6
Views: 3962
Reputation: 101
It is possible to revoke pre-signed urls created using a role, but I am not sure if this works for your scenario.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<bucket-name>/*"
}
]
}
Drawback with this approach is that if we delete the role all the pre-signed urls created using the role will not work anymore.
Upvotes: 2
Reputation: 36063
No, it's not possible to revoke a pre-signed URL. The credentials embedded in the URL are temporary credentials linked to the credentials used to create the pre-signed URL.
The closest thing you could do is either:
However, depending on your use-case, neither of those may be viable options.
Upvotes: 8