From 082a2ebe0f40b2577852f588a28218756d572d8c Mon Sep 17 00:00:00 2001 From: smokestacklightnin <125844868+smokestacklightnin@users.noreply.github.com> Date: Wed, 16 Oct 2024 03:28:42 -0700 Subject: [PATCH] Fix indentation --- .../modules/iam/policies/assume-role.json | 8 ++++---- .../policies/gha-policy-nonadmin.json.tftpl | 18 +++++++++--------- .../modules/iam/policies/gha-policy.json.tftpl | 8 ++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/web/deploy/terraform/modules/iam/policies/assume-role.json b/web/deploy/terraform/modules/iam/policies/assume-role.json index e2ebcbaa..e1f1d1bf 100644 --- a/web/deploy/terraform/modules/iam/policies/assume-role.json +++ b/web/deploy/terraform/modules/iam/policies/assume-role.json @@ -3,15 +3,15 @@ "Statement": [ { "Effect": "Allow", - "Principal": { + "Principal": { "Federated": "arn:aws:iam::123456123456:oidc-provider/token.actions.githubusercontent.com" }, "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { + "Condition": { "StringLike": { "token.actions.githubusercontent.com:sub": [ - "repo:nimh-dsst/osm:*" - ] + "repo:nimh-dsst/osm:*" + ] }, "StringEquals": { "token.actions.githubusercontent.com:aud": "sts.amazonaws.com" diff --git a/web/deploy/terraform/modules/iam/policies/gha-policy-nonadmin.json.tftpl b/web/deploy/terraform/modules/iam/policies/gha-policy-nonadmin.json.tftpl index 7e6b5f6d..40d8ad29 100644 --- a/web/deploy/terraform/modules/iam/policies/gha-policy-nonadmin.json.tftpl +++ b/web/deploy/terraform/modules/iam/policies/gha-policy-nonadmin.json.tftpl @@ -10,14 +10,14 @@ "ecr:BatchCheckLayerAvailability", "ecr:PutImage", "ecr:BatchGetImage", - "s3:GetBucketEncryption", - "s3:GetBucketTagging", - "s3:PutBucketTagging", - "s3:GetObject", - "s3:PutObject", - "s3:ListObjectsV2", - "s3:ListBuckets", - "dynamodb:CreateTable", + "s3:GetBucketEncryption", + "s3:GetBucketTagging", + "s3:PutBucketTagging", + "s3:GetObject", + "s3:PutObject", + "s3:ListObjectsV2", + "s3:ListBuckets", + "dynamodb:CreateTable", "dynamodb:DeleteTable", "dynamodb:DescribeTable", "dynamodb:ListTables", @@ -27,7 +27,7 @@ "dynamodb:DeleteItem", "dynamodb:Query", "dynamodb:Scan" - ], + ], "Resource": ${resources} }, { diff --git a/web/deploy/terraform/modules/iam/policies/gha-policy.json.tftpl b/web/deploy/terraform/modules/iam/policies/gha-policy.json.tftpl index a8328ac6..278e6b0f 100644 --- a/web/deploy/terraform/modules/iam/policies/gha-policy.json.tftpl +++ b/web/deploy/terraform/modules/iam/policies/gha-policy.json.tftpl @@ -4,11 +4,11 @@ { "Effect": "Allow", "Action": [ - "ec2:*", + "ec2:*", "ecr:*", - "s3:*", - "dynamodb:*" - ], + "s3:*", + "dynamodb:*" + ], "Resource": ${resources} }, {