From 3153da3c9b5f2b7661b4c8fa7b88062c64b09063 Mon Sep 17 00:00:00 2001 From: ZacharyWills <60660437+ZacharyWills@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:32:40 -0600 Subject: [PATCH] Update main.tf to ensure bucket access for nodes (#92) --- terraform/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terraform/main.tf b/terraform/main.tf index d5267ce..3e95f6f 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -27,6 +27,18 @@ resource "aws_iam_role" "sandbox_iam_role" { }, "Effect" : "Allow", "Sid" : "" + }, + { + "Sid": "ListObjectsInBucket", + "Effect": "Allow", + "Action": ["s3:ListBucket"], + "Resource": ["arn:aws:s3:::ioos-coastalsb-*puts"] + }, + { + "Sid": "AllObjectActions", + "Effect": "Allow", + "Action": "s3:*Object", + "Resource": ["arn:aws:s3:::ioos-coastalsb-*puts/*"] } ] })