Onboard github-control CI/CD with gha-admin v3.6.1#84
Merged
akuzminsky merged 1 commit intomainfrom Feb 20, 2026
Merged
Conversation
Migrate github-control's CI/CD infrastructure from self-managed terraform-aws-ci-cd module to centralized gha-admin v3.6.1 in aws-control. Creates state-bucket, gha-admin, and ci-cd-params modules for github-control in accounts 303467602807 and 289256138624. 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_github_control.aws_ssm_parameter.admin_role_arn |
| 🟢 | module.ci_cd_params_github_control.aws_ssm_parameter.github_role_arn |
| 🟢 | module.ci_cd_params_github_control.aws_ssm_parameter.lock_table |
| 🟢 | module.ci_cd_params_github_control.aws_ssm_parameter.state_bucket |
| 🟢 | module.ci_cd_params_github_control.aws_ssm_parameter.state_manager_role_arn |
| 🟢 | module.ih_tf_github_control.aws_iam_policy.github |
| 🟢 | module.ih_tf_github_control.aws_iam_role_policy_attachment.admin |
| 🟢 | module.ih_tf_github_control.aws_iam_role_policy_attachment.github |
| 🟢 | module.state_bucket_github_control.aws_dynamodb_table.terraform_locks |
| 🟢 | module.state_bucket_github_control.random_pet.suffix |
| 🟢 | module.ih_tf_github_control.module.state-manager.aws_iam_policy.permissions_ro |
| 🟢 | module.ih_tf_github_control.module.state-manager.aws_iam_policy.permissions_rw |
| 🟢 | module.ih_tf_github_control.module.state-manager.aws_iam_role_policy_attachment.state-manager-ro |
| 🟢 | module.ih_tf_github_control.module.state-manager.aws_iam_role_policy_attachment.state-manager-rw[0] |
| 🟡 | module.ih_tf_github_control.aws_iam_role.admin |
| 🟡 | module.ih_tf_github_control.aws_iam_role.github |
| 🟡 | module.state_bucket_github_control.aws_s3_bucket.state-bucket |
| 🟡 | module.state_bucket_github_control.aws_s3_bucket_policy.state-bucke |
| 🟡 | module.ih_tf_github_control.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_github_control.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/github-control/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_github_control.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/github-control/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_github_control.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/github-control/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_github_control.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/github-control/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_github_control.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/github-control/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_github_control.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::990466748045:role/aws-reserved/sso.amazonaws.com/us-west-1/AWSReservedSSO_AWSAdministratorAccess_16bdbe5eb442e7ef",
]
+ type = "AWS"
}
}
}
# module.ih_tf_github_control.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-github-control-state-manager",
+ "arn:aws:iam::303467602807:role/ih-tf-github-control-admin",
+ "arn:aws:iam::493370826424:role/ih-tf-aws-control-493370826424-admin",
]
}
}
# module.ih_tf_github_control.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-github-control-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_github_control.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",
- "arn:aws:iam::990466748045:role/aws-reserved/sso.amazonaws.com/us-west-1/AWSReservedSSO_AWSAdministratorAccess_16bdbe5eb442e7ef",
]
}
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
id = "ih-tf-github-control-admin"
name = "ih-tf-github-control-admin"
~ tags = {
- "created_by" = "infrahouse8/github-control" -> null
"created_by_module" = "infrahouse/gha-admin/aws"
"module_version" = "3.6.1"
}
~ tags_all = {
~ "created_by" = "infrahouse8/github-control" -> "infrahouse/aws-control"
+ "environment" = "production"
# (2 unchanged elements hidden)
}
# (10 unchanged attributes hidden)
}
# module.ih_tf_github_control.aws_iam_role.github will be updated in-place
~ resource "aws_iam_role" "github" {
id = "ih-tf-github-control-github"
name = "ih-tf-github-control-github"
~ tags = {
- "created_by" = "infrahouse8/github-control" -> null
"created_by_module" = "infrahouse/gha-admin/aws"
}
~ tags_all = {
~ "created_by" = "infrahouse8/github-control" -> "infrahouse/aws-control"
+ "environment" = "production"
# (1 unchanged element hidden)
}
# (11 unchanged attributes hidden)
}
# module.ih_tf_github_control.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-github-control-admin"
}
# module.ih_tf_github_control.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-github-control-github"
}
# module.state_bucket_github_control.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-github-control-state",
+ "arn:aws:s3:::infrahouse-github-control-state/*",
]
+ sid = "AllowSSLRequestsOnly"
+ condition {
+ test = "Bool"
+ values = [
+ "false",
]
+ variable = "aws:SecureTransport"
}
+ principals {
+ identifiers = [
+ "*",
]
+ type = "*"
}
}
}
# module.state_bucket_github_control.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-github-control-state"
}
+ 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-github-control-state"
}
+ 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_github_control.aws_s3_bucket.state-bucket will be updated in-place
~ resource "aws_s3_bucket" "state-bucket" {
+ force_destroy = false
id = "infrahouse-github-control-state"
~ tags = {
- "created_by" = "infrahouse8/github-control"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "lock_table" = "infrahouse-github-control-state-polished-lioness"
- "module_version" = "2.2.0"
- "used_by" = "infrahouse8/github-control"
} -> (known after apply)
~ tags_all = {
- "created_by" = "infrahouse8/github-control"
- "created_by_module" = "infrahouse/state-bucket/aws"
- "lock_table" = "infrahouse-github-control-state-polished-lioness"
- "module_version" = "2.2.0"
- "used_by" = "infrahouse8/github-control"
} -> (known after apply)
# (11 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# module.state_bucket_github_control.aws_s3_bucket_policy.state-bucke will be updated in-place
~ resource "aws_s3_bucket_policy" "state-bucke" {
id = "infrahouse-github-control-state"
~ policy = jsonencode(
{
- Statement = [
- {
- Action = "s3:*"
- Condition = {
- Bool = {
- "aws:SecureTransport" = "false"
}
}
- Effect = "Deny"
- Principal = "*"
- Resource = [
- "arn:aws:s3:::infrahouse-github-control-state/*",
- "arn:aws:s3:::infrahouse-github-control-state",
]
- Sid = "AllowSSLRequestsOnly"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
# (1 unchanged attribute hidden)
}
# module.state_bucket_github_control.random_pet.suffix will be created
+ resource "random_pet" "suffix" {
+ id = (known after apply)
+ length = 2
+ prefix = "infrahouse-github-control-state"
+ separator = "-"
}
# module.ih_tf_github_control.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-github-control-state/*.zip",
+ "arn:aws:s3:::infrahouse-github-control-state/plans/*",
+ "arn:aws:s3:::infrahouse-github-control-state/terraform.tfstate",
]
}
+ statement {
+ actions = [
+ "dynamodb:DeleteItem",
+ "dynamodb:DescribeTable",
+ "dynamodb:GetItem",
+ "dynamodb:PutItem",
]
+ resources = [
+ (known after apply),
]
}
}
# module.ih_tf_github_control.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-github-control-state-manager-ro"
+ path = "/"
+ policy = jsonencode(
{
+ Statement = [
+ {
+ Action = "s3:ListBucket"
+ Effect = "Allow"
+ Resource = "arn:aws:s3:::infrahouse-github-control-state"
},
+ {
+ Action = "s3:GetObject"
+ Effect = "Allow"
+ Resource = [
+ "arn:aws:s3:::infrahouse-github-control-state/terraform.tfstate",
+ "arn:aws:s3:::infrahouse-github-control-state/plans/*",
+ "arn:aws:s3:::infrahouse-github-control-state/*.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_github_control.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-github-control-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_github_control.module.state-manager.aws_iam_role.state-manager will be updated in-place
~ resource "aws_iam_role" "state-manager" {
id = "ih-tf-github-control-state-manager"
name = "ih-tf-github-control-state-manager"
~ tags = {
- "created_by" = "infrahouse8/github-control" -> null
"created_by_module" = "infrahouse/state-manager/aws"
"module_version" = "1.4.2"
}
~ tags_all = {
~ "created_by" = "infrahouse8/github-control" -> "infrahouse/aws-control"
+ "environment" = "production"
# (2 unchanged elements hidden)
}
# (11 unchanged attributes hidden)
}
# module.ih_tf_github_control.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-github-control-state-manager"
}
# module.ih_tf_github_control.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-github-control-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 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
Migration plan
See
.claude/plans/migrate-github-control-gha-admin.mdfor full step-by-step instructions including import commands and github-control repo changes.Test plan
terraform initsucceedsterraform planshows no destroysterraform applysucceeds🤖 Generated with Claude Code