S3 Presigned URL
Temporary credential that can be generated and given to anyone to allow temporary access to a bucket or an object.
Permission granted can only be at the same level as the role used to generate the presigned URL
Presigned URL includes the following:
- X-Amz-Algorithm
- X-Amz-Expires
- X-Amz-Date
- X-Amz-SignedHeaders
- X-Amz-Security-Token
- X-Amz-Credential
- X-Amz-Signature
- 3600 seconds is none is defined
- Seconds as defined by "--expires-in" flag
- Expired time of the role used to generate the URL
Example (via PowerShell)
1 2 3 4 5 6 | $s3uri = "myBucket/mylogs/important.log" $expireSec = 120 $output = aws s3 presign $s3uri --expires-in $expireSec $objIE = new-object -ComObject InternetExplorer.Application $objIE.Navigate($output) $objIE.visible = $true |
No comments:
Post a Comment