Onboard AWS account 493370826424 with gha-admin v3.6.1#82
Merged
akuzminsky merged 2 commits intomainfrom Feb 19, 2026
Merged
Conversation
Add state-bucket, gha-admin v3.6.1, and ci-cd-params for account 493370826424. Add provider alias and refactor allowed_arns to use a for comprehension over local.managed_account_ids. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
infrahouse8
approved these changes
Feb 19, 2026
State
|
| Success | 🟢 Add | 🟡 Change | Destroy |
|---|---|---|---|
| ✅ | 14 | 6 | 0 |
Affected resources by action
| Action | Resources |
|---|---|
| 🟢 | module.ci_cd_params_493370826424.aws_ssm_parameter.admin_role_arn |
| 🟢 | module.ci_cd_params_493370826424.aws_ssm_parameter.github_role_arn |
| 🟢 | module.ci_cd_params_493370826424.aws_ssm_parameter.lock_table |
| 🟢 | module.ci_cd_params_493370826424.aws_ssm_parameter.state_bucket |
| 🟢 | module.ci_cd_params_493370826424.aws_ssm_parameter.state_manager_role_arn |
| 🟢 | module.ih_tf_aws_control_493370826424.aws_iam_policy.github |
| 🟢 | module.ih_tf_aws_control_493370826424.aws_iam_role_policy_attachment.admin |
| 🟢 | module.ih_tf_aws_control_493370826424.aws_iam_role_policy_attachment.github |
| 🟢 | module.state_bucket_493370826424.aws_dynamodb_table.terraform_locks |
| 🟢 | module.state_bucket_493370826424.random_pet.suffix |
| 🟢 | module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_policy.permissions_ro |
| 🟢 | module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_policy.permissions_rw |
| 🟢 | module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_role_policy_attachment.state-manager-ro |
| 🟢 | module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_role_policy_attachment.state-manager-rw[0] |
| 🟡 | module.ih_tf_aws_control_493370826424.aws_iam_role.admin |
| 🟡 | module.ih_tf_aws_control_493370826424.aws_iam_role.github |
| 🟡 | module.ih_tf_aws_control_990466748045.aws_iam_policy.github |
| 🟡 | module.state_bucket_493370826424.aws_s3_bucket.state-bucket |
| 🟡 | module.state_bucket_493370826424.aws_s3_bucket_policy.state-bucke |
| 🟡 | module.ih_tf_aws_control_493370826424.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:
+ create
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.ci_cd_params_493370826424.aws_ssm_parameter.admin_role_arn will be created
+ resource "aws_ssm_parameter" "admin_role_arn" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ has_value_wo = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "/terraform/aws-control-493370826424/ci-cd/admin_role_arn"
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "environment" = "production"
}
+ tier = (known after apply)
+ type = "String"
+ value = (sensitive value)
+ value_wo = (write-only attribute)
+ version = (known after apply)
}
# module.ci_cd_params_493370826424.aws_ssm_parameter.github_role_arn will be created
+ resource "aws_ssm_parameter" "github_role_arn" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ has_value_wo = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "/terraform/aws-control-493370826424/ci-cd/github_role_arn"
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "environment" = "production"
}
+ tier = (known after apply)
+ type = "String"
+ value = (sensitive value)
+ value_wo = (write-only attribute)
+ version = (known after apply)
}
# module.ci_cd_params_493370826424.aws_ssm_parameter.lock_table will be created
+ resource "aws_ssm_parameter" "lock_table" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ has_value_wo = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "/terraform/aws-control-493370826424/backend/lock_table"
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "environment" = "production"
}
+ tier = (known after apply)
+ type = "String"
+ value = (sensitive value)
+ value_wo = (write-only attribute)
+ version = (known after apply)
}
# module.ci_cd_params_493370826424.aws_ssm_parameter.state_bucket will be created
+ resource "aws_ssm_parameter" "state_bucket" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ has_value_wo = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "/terraform/aws-control-493370826424/backend/state_bucket"
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "environment" = "production"
}
+ tier = (known after apply)
+ type = "String"
+ value = (sensitive value)
+ value_wo = (write-only attribute)
+ version = (known after apply)
}
# module.ci_cd_params_493370826424.aws_ssm_parameter.state_manager_role_arn will be created
+ resource "aws_ssm_parameter" "state_manager_role_arn" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ has_value_wo = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "/terraform/aws-control-493370826424/backend/state_manager_role_arn"
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "environment" = "production"
}
+ tier = (known after apply)
+ type = "String"
+ value = (sensitive value)
+ value_wo = (write-only attribute)
+ version = (known after apply)
}
# module.ih_tf_aws_control_493370826424.data.aws_iam_policy_document.admin-trust will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_iam_policy_document" "admin-trust" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "sts:AssumeRole",
]
+ principals {
+ identifiers = [
+ "arn:aws:iam::303467602807:role/ih-tf-github-control-github",
+ "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
+ "arn:aws:iam::990466748045:role/aws-reserved/sso.amazonaws.com/us-west-1/AWSReservedSSO_AWSAdministratorAccess_16bdbe5eb442e7ef",
]
+ type = "AWS"
}
}
}
# module.ih_tf_aws_control_493370826424.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-303467602807-state-manager-read-only",
+ "arn:aws:iam::289256138624:role/ih-tf-aws-control-493370826424-state-manager",
+ "arn:aws:iam::303467602807:role/ih-tf-aws-control-303467602807-read-only",
+ "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-admin",
]
}
}
# module.ih_tf_aws_control_493370826424.aws_iam_policy.github will be created
+ resource "aws_iam_policy" "github" {
+ arn = (known after apply)
+ attachment_count = (known after apply)
+ id = (known after apply)
+ name = (known after apply)
+ name_prefix = "ih-tf-aws-control-493370826424-github"
+ path = "/"
+ policy = (known after apply)
+ policy_id = (known after apply)
+ tags = {
+ "created_by_module" = "infrahouse/gha-admin/aws"
}
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "environment" = "production"
}
}
# module.ih_tf_aws_control_493370826424.aws_iam_role.admin will be updated in-place
~ resource "aws_iam_role" "admin" {
~ assume_role_policy = jsonencode(
{
- Statement = [
- {
- Action = "sts:AssumeRole"
- Effect = "Allow"
- Principal = {
- AWS = [
- "arn:aws:iam::303467602807:role/ih-tf-github-control-github",
- "AIDA6NHDLF2GVSWEAKI5Y",
- "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
]
}
- Sid = "000"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
id = "ih-tf-aws-control-493370826424-admin"
~ max_session_duration = 3600 -> 43200
name = "ih-tf-aws-control-493370826424-admin"
~ tags = {
- "created_by" = "infrahouse/aws-control-493370826424" -> null
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "module_version" = "3.6.1"
}
~ tags_all = {
~ "created_by" = "infrahouse/aws-control-493370826424" -> "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "module_version" = "3.6.1"
# (1 unchanged element hidden)
}
# (9 unchanged attributes hidden)
}
# module.ih_tf_aws_control_493370826424.aws_iam_role.github will be updated in-place
~ resource "aws_iam_role" "github" {
~ assume_role_policy = jsonencode(
~ {
~ Statement = [
~ {
- Sid = "010"
# (4 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
id = "ih-tf-aws-control-493370826424-github"
~ max_session_duration = 3600 -> 43200
name = "ih-tf-aws-control-493370826424-github"
~ tags = {
- "created_by" = "infrahouse/aws-control-493370826424" -> null
+ "created_by_module" = "infrahouse/gha-admin/aws"
}
~ tags_all = {
~ "created_by" = "infrahouse/aws-control-493370826424" -> "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/gha-admin/aws"
# (1 unchanged element hidden)
}
# (9 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.ih_tf_aws_control_493370826424.aws_iam_role_policy_attachment.admin will be created
+ resource "aws_iam_role_policy_attachment" "admin" {
+ id = (known after apply)
+ policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
+ role = "ih-tf-aws-control-493370826424-admin"
}
# module.ih_tf_aws_control_493370826424.aws_iam_role_policy_attachment.github will be created
+ resource "aws_iam_role_policy_attachment" "github" {
+ id = (known after apply)
+ policy_arn = (known after apply)
+ role = "ih-tf-aws-control-493370826424-github"
}
# module.ih_tf_aws_control_990466748045.aws_iam_policy.github will be updated in-place
~ resource "aws_iam_policy" "github" {
id = "arn:aws:iam::990466748045:policy/ih-tf-aws-control-github20260219204246831500000001"
name = "ih-tf-aws-control-github20260219204246831500000001"
~ policy = jsonencode(
~ {
~ Statement = [
~ {
~ Resource = [
"arn:aws:iam::990466748045:role/ih-tf-aws-control-admin",
+ "arn:aws:iam::493370826424:role/AWSControlTowerExecution",
"arn:aws:iam::338531211565:role/AWSControlTowerExecution",
# (3 unchanged elements hidden)
]
# (2 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
tags = {
"created_by_module" = "infrahouse/gha-admin/aws"
}
# (7 unchanged attributes hidden)
}
# module.state_bucket_493370826424.data.aws_iam_policy_document.enforce_ssl_policy will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_iam_policy_document" "enforce_ssl_policy" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "s3:*",
]
+ effect = "Deny"
+ resources = [
+ "arn:aws:s3:::infrahouse-aws-control-493370826424",
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/*",
]
+ sid = "AllowSSLRequestsOnly"
+ condition {
+ test = "Bool"
+ values = [
+ "false",
]
+ variable = "aws:SecureTransport"
}
+ principals {
+ identifiers = [
+ "*",
]
+ type = "*"
}
}
}
# module.state_bucket_493370826424.aws_dynamodb_table.terraform_locks will be created
+ resource "aws_dynamodb_table" "terraform_locks" {
+ arn = (known after apply)
+ billing_mode = "PAY_PER_REQUEST"
+ hash_key = "LockID"
+ id = (known after apply)
+ name = (known after apply)
+ read_capacity = (known after apply)
+ stream_arn = (known after apply)
+ stream_label = (known after apply)
+ stream_view_type = (known after apply)
+ tags = {
+ "VantaNoAlert" = "Table used for Terraform state lock and does not contain user data"
+ "created_by_module" = "infrahouse/state-bucket/aws"
+ "state_bucket" = "infrahouse-aws-control-493370826424"
}
+ tags_all = {
+ "VantaNoAlert" = "Table used for Terraform state lock and does not contain user data"
+ "created_by" = "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/state-bucket/aws"
+ "environment" = "production"
+ "state_bucket" = "infrahouse-aws-control-493370826424"
}
+ write_capacity = (known after apply)
+ attribute {
+ name = "LockID"
+ type = "S"
}
+ point_in_time_recovery (known after apply)
+ server_side_encryption (known after apply)
+ ttl (known after apply)
}
# module.state_bucket_493370826424.aws_s3_bucket.state-bucket will be updated in-place
~ resource "aws_s3_bucket" "state-bucket" {
+ force_destroy = false
id = "infrahouse-aws-control-493370826424"
~ tags = {
- "created_by" = "infrahouse/aws-control-289256138624"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "description" = "Terraform state for ci-cd account https://github.com/infrahouse/aws-control-493370826424"
- "lock_table" = "infrahouse-aws-control-493370826424-content-albacore"
- "module_version" = "2.2.0"
- "repo" = "infrahouse/aws-control-493370826424"
} -> (known after apply)
~ tags_all = {
- "created_by" = "infrahouse/aws-control-289256138624"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "description" = "Terraform state for ci-cd account https://github.com/infrahouse/aws-control-493370826424"
- "lock_table" = "infrahouse-aws-control-493370826424-content-albacore"
- "module_version" = "2.2.0"
- "repo" = "infrahouse/aws-control-493370826424"
} -> (known after apply)
# (11 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# module.state_bucket_493370826424.aws_s3_bucket_policy.state-bucke will be updated in-place
~ resource "aws_s3_bucket_policy" "state-bucke" {
id = "infrahouse-aws-control-493370826424"
~ policy = jsonencode(
{
- Statement = [
- {
- Action = "s3:*"
- Condition = {
- Bool = {
- "aws:SecureTransport" = "false"
}
}
- Effect = "Deny"
- Principal = "*"
- Resource = [
- "arn:aws:s3:::infrahouse-aws-control-493370826424/*",
- "arn:aws:s3:::infrahouse-aws-control-493370826424",
]
- Sid = "AllowSSLRequestsOnly"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
# (1 unchanged attribute hidden)
}
# module.state_bucket_493370826424.random_pet.suffix will be created
+ resource "random_pet" "suffix" {
+ id = (known after apply)
+ length = 2
+ prefix = "infrahouse-aws-control-493370826424"
+ separator = "-"
}
# module.ih_tf_aws_control_493370826424.module.state-manager.data.aws_iam_policy_document.permissions_rw will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "permissions_rw" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "s3:DeleteObject",
+ "s3:PutObject",
]
+ resources = [
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/*.zip",
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/plans/*",
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/terraform.tfstate",
]
}
+ statement {
+ actions = [
+ "dynamodb:DeleteItem",
+ "dynamodb:DescribeTable",
+ "dynamodb:GetItem",
+ "dynamodb:PutItem",
]
+ resources = [
+ (known after apply),
]
}
}
# module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_policy.permissions_ro will be created
+ resource "aws_iam_policy" "permissions_ro" {
+ arn = (known after apply)
+ attachment_count = (known after apply)
+ id = (known after apply)
+ name = (known after apply)
+ name_prefix = "ih-tf-aws-control-493370826424-state-manager-ro"
+ path = "/"
+ policy = jsonencode(
{
+ Statement = [
+ {
+ Action = "s3:ListBucket"
+ Effect = "Allow"
+ Resource = "arn:aws:s3:::infrahouse-aws-control-493370826424"
},
+ {
+ Action = "s3:GetObject"
+ Effect = "Allow"
+ Resource = [
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/terraform.tfstate",
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/plans/*",
+ "arn:aws:s3:::infrahouse-aws-control-493370826424/*.zip",
]
},
]
+ Version = "2012-10-17"
}
)
+ policy_id = (known after apply)
+ tags = {
+ "created_by_module" = "infrahouse/state-manager/aws"
}
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/state-manager/aws"
+ "environment" = "production"
}
}
# module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_policy.permissions_rw will be created
+ resource "aws_iam_policy" "permissions_rw" {
+ arn = (known after apply)
+ attachment_count = (known after apply)
+ id = (known after apply)
+ name = (known after apply)
+ name_prefix = "ih-tf-aws-control-493370826424-state-manager-rw"
+ path = "/"
+ policy = (known after apply)
+ policy_id = (known after apply)
+ tags = {
+ "created_by_module" = "infrahouse/state-manager/aws"
}
+ tags_all = {
+ "created_by" = "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/state-manager/aws"
+ "environment" = "production"
}
}
# module.ih_tf_aws_control_493370826424.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 = [
- "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
"arn:aws:iam::990466748045:role/aws-reserved/sso.amazonaws.com/us-west-1/AWSReservedSSO_AWSAdministratorAccess_16bdbe5eb442e7ef",
+ "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-github",
+ "arn:aws:iam::303467602807:role/ih-tf-github-control-github",
]
}
# (3 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
id = "ih-tf-aws-control-493370826424-state-manager"
name = "ih-tf-aws-control-493370826424-state-manager"
~ tags = {
- "created_by" = "infrahouse/aws-control-289256138624" -> null
"created_by_module" = "infrahouse/state-manager/aws"
"module_version" = "1.4.2"
}
~ tags_all = {
~ "created_by" = "infrahouse/aws-control-289256138624" -> "infrahouse/aws-control"
+ "environment" = "production"
# (2 unchanged elements hidden)
}
# (10 unchanged attributes hidden)
}
# module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_role_policy_attachment.state-manager-ro will be created
+ resource "aws_iam_role_policy_attachment" "state-manager-ro" {
+ id = (known after apply)
+ policy_arn = (known after apply)
+ role = "ih-tf-aws-control-493370826424-state-manager"
}
# module.ih_tf_aws_control_493370826424.module.state-manager.aws_iam_role_policy_attachment.state-manager-rw[0] will be created
+ resource "aws_iam_role_policy_attachment" "state-manager-rw" {
+ id = (known after apply)
+ policy_arn = (known after apply)
+ role = "ih-tf-aws-control-493370826424-state-manager"
}
Plan: 14 to add, 6 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
eyJzMzovL2luZnJhaG91c2UtYXdzLWNvbnRyb2wtOTkwNDY2NzQ4MDQ1L3RlcnJhZm9ybS50ZnN0YXRlIjogeyJzdWNjZXNzIjogdHJ1ZSwgImFkZCI6IDE0LCAiY2hhbmdlIjogNiwgImRlc3Ryb3kiOiAwfX0=
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
aws-493370826424-uw1allowed_arnsto useforcomprehension overlocal.managed_account_idstrusted_arnsincludes SSO admin andih-tf-github-control-githubfrom 303467602807allowed_arnsincludes read-only roles for 303467602807 remote state and Route53 accessTest plan
terraform importfor S3 bucket, github/admin/state-manager roles)make applysucceeds🤖 Generated with Claude Code