Onboard AWS account 289256138624 with gha-admin v3.6.1#81
Merged
akuzminsky merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
Add state-bucket, gha-admin v3.6.1, and ci-cd-params modules for the terraform-control account (289256138624). All three providers point to the same account since it IS the TF states account. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
State
|
| Success | 🟢 Add | 🟡 Change | Destroy |
|---|---|---|---|
| ✅ | 14 | 5 | 0 |
Affected resources by action
| Action | Resources |
|---|---|
| 🟢 | module.ci_cd_params_289256138624.aws_ssm_parameter.admin_role_arn |
| 🟢 | module.ci_cd_params_289256138624.aws_ssm_parameter.github_role_arn |
| 🟢 | module.ci_cd_params_289256138624.aws_ssm_parameter.lock_table |
| 🟢 | module.ci_cd_params_289256138624.aws_ssm_parameter.state_bucket |
| 🟢 | module.ci_cd_params_289256138624.aws_ssm_parameter.state_manager_role_arn |
| 🟢 | module.ih_tf_aws_control_289256138624.aws_iam_policy.github |
| 🟢 | module.ih_tf_aws_control_289256138624.aws_iam_role_policy_attachment.admin |
| 🟢 | module.ih_tf_aws_control_289256138624.aws_iam_role_policy_attachment.github |
| 🟢 | module.state_bucket_289256138624.aws_dynamodb_table.terraform_locks |
| 🟢 | module.state_bucket_289256138624.random_pet.suffix |
| 🟢 | module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_policy.permissions_ro |
| 🟢 | module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_policy.permissions_rw |
| 🟢 | module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_role_policy_attachment.state-manager-ro |
| 🟢 | module.ih_tf_aws_control_289256138624.module.state-manager.aws_iam_role_policy_attachment.state-manager-rw[0] |
| 🟡 | module.ih_tf_aws_control_289256138624.aws_iam_role.admin |
| 🟡 | module.ih_tf_aws_control_289256138624.aws_iam_role.github |
| 🟡 | module.state_bucket_289256138624.aws_s3_bucket.state-bucket |
| 🟡 | module.state_bucket_289256138624.aws_s3_bucket_policy.state-bucke |
| 🟡 | 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:
+ create
~ update in-place
<= read (data resources)
Terraform will perform the following actions:
# module.ci_cd_params_289256138624.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-289256138624/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_289256138624.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-289256138624/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_289256138624.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-289256138624/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_289256138624.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-289256138624/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_289256138624.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-289256138624/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_289256138624.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::289256138624:role/ih-tf-aws-control-289256138624-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_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 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-289256138624-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_289256138624.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::289256138624:role/ih-tf-aws-control-289256138624-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",
]
}
- Sid = "000"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
id = "ih-tf-aws-control-289256138624-admin"
~ max_session_duration = 3600 -> 43200
name = "ih-tf-aws-control-289256138624-admin"
~ tags = {
- "created_by" = "infrahouse/aws-control-289256138624" -> null
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "module_version" = "3.6.1"
}
~ tags_all = {
~ "created_by" = "infrahouse/aws-control-289256138624" -> "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "environment" = "production"
+ "module_version" = "3.6.1"
}
# (9 unchanged attributes hidden)
}
# module.ih_tf_aws_control_289256138624.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-289256138624-github"
~ max_session_duration = 3600 -> 43200
name = "ih-tf-aws-control-289256138624-github"
~ tags = {
- "created_by" = "infrahouse/aws-control-289256138624" -> null
+ "created_by_module" = "infrahouse/gha-admin/aws"
}
~ tags_all = {
~ "created_by" = "infrahouse/aws-control-289256138624" -> "infrahouse/aws-control"
+ "created_by_module" = "infrahouse/gha-admin/aws"
+ "environment" = "production"
}
# (9 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.ih_tf_aws_control_289256138624.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-289256138624-admin"
}
# module.ih_tf_aws_control_289256138624.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-289256138624-github"
}
# module.state_bucket_289256138624.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-289256138624",
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/*",
]
+ sid = "AllowSSLRequestsOnly"
+ condition {
+ test = "Bool"
+ values = [
+ "false",
]
+ variable = "aws:SecureTransport"
}
+ principals {
+ identifiers = [
+ "*",
]
+ type = "*"
}
}
}
# module.state_bucket_289256138624.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-289256138624"
}
+ 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-289256138624"
}
+ 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_289256138624.aws_s3_bucket.state-bucket will be updated in-place
~ resource "aws_s3_bucket" "state-bucket" {
+ force_destroy = false
id = "infrahouse-aws-control-289256138624"
~ tags = {
- "created_by" = "infrahouse/aws-control-289256138624"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "description" = "Terraform state for terraform-control account https://github.com/infrahouse/aws-control-289256138624"
- "lock_table" = "infrahouse-aws-control-289256138624-above-asp"
- "module_version" = "2.2.0"
- "repo" = "infrahouse/aws-control-289256138624"
} -> (known after apply)
~ tags_all = {
- "created_by" = "infrahouse/aws-control-289256138624"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "description" = "Terraform state for terraform-control account https://github.com/infrahouse/aws-control-289256138624"
- "lock_table" = "infrahouse-aws-control-289256138624-above-asp"
- "module_version" = "2.2.0"
- "repo" = "infrahouse/aws-control-289256138624"
} -> (known after apply)
# (11 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# module.state_bucket_289256138624.aws_s3_bucket_policy.state-bucke will be updated in-place
~ resource "aws_s3_bucket_policy" "state-bucke" {
id = "infrahouse-aws-control-289256138624"
~ policy = jsonencode(
{
- Statement = [
- {
- Action = "s3:*"
- Condition = {
- Bool = {
- "aws:SecureTransport" = "false"
}
}
- Effect = "Deny"
- Principal = "*"
- Resource = [
- "arn:aws:s3:::infrahouse-aws-control-289256138624/*",
- "arn:aws:s3:::infrahouse-aws-control-289256138624",
]
- Sid = "AllowSSLRequestsOnly"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
# (1 unchanged attribute hidden)
}
# module.state_bucket_289256138624.random_pet.suffix will be created
+ resource "random_pet" "suffix" {
+ id = (known after apply)
+ length = 2
+ prefix = "infrahouse-aws-control-289256138624"
+ separator = "-"
}
# module.ih_tf_aws_control_289256138624.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-289256138624/*.zip",
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/plans/*",
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/terraform.tfstate",
]
}
+ statement {
+ actions = [
+ "dynamodb:DeleteItem",
+ "dynamodb:DescribeTable",
+ "dynamodb:GetItem",
+ "dynamodb:PutItem",
]
+ resources = [
+ (known after apply),
]
}
}
# module.ih_tf_aws_control_289256138624.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-289256138624-state-manager-ro"
+ path = "/"
+ policy = jsonencode(
{
+ Statement = [
+ {
+ Action = "s3:ListBucket"
+ Effect = "Allow"
+ Resource = "arn:aws:s3:::infrahouse-aws-control-289256138624"
},
+ {
+ Action = "s3:GetObject"
+ Effect = "Allow"
+ Resource = [
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/terraform.tfstate",
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/plans/*",
+ "arn:aws:s3:::infrahouse-aws-control-289256138624/*.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_289256138624.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-289256138624-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_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 = [
- "arn:aws:iam::289256138624:role/ih-tf-aws-control-289256138624-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::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" = "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_289256138624.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-289256138624-state-manager"
}
# module.ih_tf_aws_control_289256138624.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-289256138624-state-manager"
}
Plan: 14 to add, 5 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
eyJzMzovL2luZnJhaG91c2UtYXdzLWNvbnRyb2wtOTkwNDY2NzQ4MDQ1L3RlcnJhZm9ybS50ZnN0YXRlIjogeyJzdWNjZXNzIjogdHJ1ZSwgImFkZCI6IDE0LCAiY2hhbmdlIjogNSwgImRlc3Ryb3kiOiAwfX0=
infrahouse8
approved these changes
Feb 19, 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
trusted_arnsincludes SSO admin and 493370826424's github role (matching currentadmin_allowed_arns)allowed_arnsneeded — this repo doesn't assume cross-account rolesTest plan
terraform importfor S3 bucket, github/admin/state-manager roles)make applysucceeds🤖 Generated with Claude Code