Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit e6ac1b6

Browse files
Mike McGirrketzacoatl
authored andcommitted
Changes to the s3-remote-state for issue 286
1 parent d115db7 commit e6ac1b6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

modules/s3-full-access-policy/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ data "aws_iam_policy_document" "s3-full-access" {
5050
effect = "Allow"
5151

5252
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
5455
"s3:PutObject",
5556
"s3:GetObject",
5657
"s3:DeleteObject",
57-
"s3:CreateMultipartUpload",
58+
# "s3:CreateMultipartUpload", # TODO this might not be a valid action
5859
"s3:ListMultipartUploadParts",
5960
"s3:AbortMultipartUpload",
6061
]

modules/s3-remote-state/main.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ variable "bucket_name" {
1313
}
1414

1515
variable "principals" {
16-
default = []
1716
description = "list of user/role ARNs to get full access to the bucket"
1817
type = list(string)
1918
}
@@ -72,8 +71,6 @@ data "aws_iam_policy_document" "s3-full-access" {
7271
statement {
7372
effect = "Allow"
7473

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
7774
actions = [
7875
"s3:PutObject",
7976
"s3:GetObject",

0 commit comments

Comments
 (0)