Skip to content

Commit

Permalink
put permission for get object version
Browse files Browse the repository at this point in the history
  • Loading branch information
alex75 committed Mar 31, 2023
1 parent e57075d commit bafff4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cads_catalogue/object_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"Resource": ["arn:aws:s3:::%(bucket_name)s"],
},
{
"Action": ["s3:GetObject"],
"Action": ["s3:GetObject", "s3:GetObjectVersion"],
"Effect": "Allow",
"Principal": {"AWS": ["*"]},
"Resource": ["arn:aws:s3:::%(bucket_name)s/*"],
Expand All @@ -64,6 +64,7 @@
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:GetObjectVersion",
"s3:ListMultipartUploadParts",
],
"Effect": "Allow",
Expand Down

0 comments on commit bafff4d

Please sign in to comment.