From bafff4dccb44d294b07ae678431418065911ad47 Mon Sep 17 00:00:00 2001 From: Alessio Siniscalchi Date: Fri, 31 Mar 2023 09:29:32 +0200 Subject: [PATCH] put permission for get object version --- cads_catalogue/object_storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cads_catalogue/object_storage.py b/cads_catalogue/object_storage.py index fa54a3c..e914cf7 100644 --- a/cads_catalogue/object_storage.py +++ b/cads_catalogue/object_storage.py @@ -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/*"], @@ -64,6 +64,7 @@ "s3:AbortMultipartUpload", "s3:DeleteObject", "s3:GetObject", + "s3:GetObjectVersion", "s3:ListMultipartUploadParts", ], "Effect": "Allow",