Files
oam/examples/aws/iam.policies/temporary-ro-access.json
2024-09-13 20:12:56 +02:00

25 lines
647 B
JSON

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAttachedPrincipalsTemporaryROAccessToBucket",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:GetObjectAttributes",
"s3:ListBucket",
"s3:ListBucketVersions"
],
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
],
"Condition": {
"DateLessThan": {
"aws:CurrentTime": "2024-03-01T00:00:00Z"
}
}
}
]
}