This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,12 @@ data "aws_iam_policy_document" "s3-full-access" {
50
50
effect = " Allow"
51
51
52
52
actions = [
53
- " s3:ListObjects" ,
53
+ # "s3:ListObjects", # TODO this might not be a valid action
54
+ # See https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html
54
55
" s3:PutObject" ,
55
56
" s3:GetObject" ,
56
57
" s3:DeleteObject" ,
57
- " s3:CreateMultipartUpload" ,
58
+ # "s3:CreateMultipartUpload", # TODO this might not be a valid action
58
59
" s3:ListMultipartUploadParts" ,
59
60
" s3:AbortMultipartUpload" ,
60
61
]
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ variable "bucket_name" {
13
13
}
14
14
15
15
variable "principals" {
16
- default = []
17
16
description = " list of user/role ARNs to get full access to the bucket"
18
17
type = list (string )
19
18
}
@@ -72,8 +71,6 @@ data "aws_iam_policy_document" "s3-full-access" {
72
71
statement {
73
72
effect = " Allow"
74
73
75
- # find an authoritative list of valid Actions for a AWS bucket policy,
76
- # I haven't been able to locate one, and the two commented out are invalid
77
74
actions = [
78
75
" s3:PutObject" ,
79
76
" s3:GetObject" ,
You can’t perform that action at this time.
0 commit comments