Fix trusted_arns for 289256138624 and clean up 493370826424#83
Merged
akuzminsky merged 1 commit intomainfrom Feb 20, 2026
Merged
Fix trusted_arns for 289256138624 and clean up 493370826424#83akuzminsky merged 1 commit intomainfrom
akuzminsky merged 1 commit intomainfrom
Conversation
…0826424 Add ih-tf-github-control-github to 289256138624 trusted_arns so github-control CI/CD can assume the admin role. Remove unused read-only role from 493370826424 allowed_arns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
State
|
| Success | Add | 🟡 Change | Destroy |
|---|---|---|---|
| ✅ | 0 | 4 | 0 |
Affected resources by action
| Action | Resources |
|---|---|
| 🟡 | module.ih_tf_aws_control_289256138624.aws_iam_policy.github |
| 🟡 | module.ih_tf_aws_control_289256138624.aws_iam_role.admin |
| 🟡 | module.ih_tf_aws_control_493370826424.aws_iam_policy.github |
| 🟡 | module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_role.state-manager |
STDOUT
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.ih_tf_aws_control_289256138624.data.aws_iam_policy_document.github-permissions will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_iam_policy_document" "github-permissions" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "sts:AssumeRole",
]
+ resources = [
+ "arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-admin",
+ "arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-state-manager",
]
}
}
# module.ih_tf_aws_control_289256138624.aws_iam_policy.github will be updated in-place
~ resource "aws_iam_policy" "github" {
id = "arn:aws:iam::289256138624:policy/ih-tf-aws-control-289256138624-github20260219215208187100000001"
name = "ih-tf-aws-control-289256138624-github20260219215208187100000001"
~ policy = jsonencode(
{
- Statement = [
- {
- Action = "sts:AssumeRole"
- Effect = "Allow"
- Resource = [
- "arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-state-manager",
- "arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-admin",
]
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
tags = {
"created_by_module" = "infrahouse/gha-admin/aws"
}
# (7 unchanged attributes hidden)
}
# module.ih_tf_aws_control_289256138624.aws_iam_role.admin will be updated in-place
~ resource "aws_iam_role" "admin" {
~ assume_role_policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ AWS = [
# (1 unchanged element hidden)
"arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
+ "arn:aws:iam::303467602807:role/ih-tf-github-control-github",
"arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-github",
]
}
# (2 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
id = "ih-tf-aws-control-289256138624-admin"
name = "ih-tf-aws-control-289256138624-admin"
tags = {
"created_by_module" = "infrahouse/gha-admin/aws"
"module_version" = "3.6.1"
}
# (11 unchanged attributes hidden)
}
# module.ih_tf_aws_control_493370826424.aws_iam_policy.github will be updated in-place
~ resource "aws_iam_policy" "github" {
id = "arn:aws:iam::493370826424:policy/ih-tf-aws-control-493370826424-github20260219225906427200000002"
name = "ih-tf-aws-control-493370826424-github20260219225906427200000002"
~ policy = jsonencode(
~ {
~ Statement = [
~ {
~ Resource = [
"arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-admin",
- "arn:aws:iam::303467602807:role/ih-tf-aws-control-303467602807-read-only",
"arn:aws:iam::289256138624:role/ih-tf-aws-control-493370826424-state-manager",
# (1 unchanged element hidden)
]
# (2 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
tags = {
"created_by_module" = "infrahouse/gha-admin/aws"
}
# (7 unchanged attributes hidden)
}
# module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_role.state-manager will be updated in-place
~ resource "aws_iam_role" "state-manager" {
~ assume_role_policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ AWS = [
# (1 unchanged element hidden)
"arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
+ "arn:aws:iam::303467602807:role/ih-tf-github-control-github",
"arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-github",
]
}
# (3 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
id = "ih-tf-aws-control-289256138624-state-manager"
name = "ih-tf-aws-control-289256138624-state-manager"
tags = {
"created_by_module" = "infrahouse/state-manager/aws"
"module_version" = "1.4.2"
}
# (11 unchanged attributes hidden)
}
Plan: 0 to add, 4 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
metadata
eyJzMzovL2luZnJhaG91c2UtYXdzLWNvbnRyb2wtOTkwNDY2NzQ4MDQ1L3RlcnJhZm9ybS50ZnN0YXRlIjogeyJzdWNjZXNzIjogdHJ1ZSwgImFkZCI6IDAsICJjaGFuZ2UiOiA0LCAiZGVzdHJveSI6IDB9fQ==
infrahouse8
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ih-tf-github-control-github(303467602807) totrusted_arnsin the 289256138624 gha-admin module, fixing github-control CI/CD access to the admin roleih-tf-aws-control-303467602807-read-onlyfromallowed_arnsin the 493370826424 module (no longer needed after hardcoding NS servers)Test plan
terraform planshows trust policy update onih-tf-aws-control-289256138624-adminand policy update onih-tf-aws-control-493370826424-githubih-tf-aws-control-289256138624-adminafter apply🤖 Generated with Claude Code