Repository navigation
fix(prod): allow deploy to read ALB target health - #1061
Merged
Merged
Conversation
10 tasks done
Contributor
terraform plan
prod — 0 to add, 1 to changemodule.eks.data.aws_iam_policy_document.node_trust: Reading...
data.aws_iam_policy_document.eso_trust: Reading...
module.eks.data.aws_iam_policy_document.cluster_trust: Reading...
module.eks.data.aws_iam_policy_document.node_trust: Read complete after 0s [id=2851119427]
module.network.data.aws_availability_zones.available: Reading...
module.eks.data.aws_iam_policy_document.cluster_trust: Read complete after 0s [id=1029077455]
data.aws_iam_policy_document.eso_trust: Read complete after 0s [id=819195744]
module.ses.data.aws_region.current: Reading...
data.aws_caller_identity.current: Reading...
module.ses.data.aws_region.current: Read complete after 0s [id=us-east-2]
data.aws_iam_policy_document.efs_csi_trust: Reading...
data.aws_rds_engine_version.aurora_pg: Reading...
data.aws_iam_openid_connect_provider.github: Reading...
data.aws_iam_policy_document.efs_csi_trust: Read complete after 0s [id=819195744]
module.network.data.aws_region.current: Reading...
module.network.data.aws_region.current: Read complete after 0s [id=us-east-2]
data.aws_iam_policy_document.pod_trust: Reading...
data.aws_caller_identity.current: Read complete after 0s [id=797781631727]
data.aws_iam_policy_document.pod_trust: Read complete after 0s [id=819195744]
data.aws_iam_policy_document.otel_collector: Reading...
data.aws_iam_policy_document.otel_collector: Read complete after 0s [id=1193716550]
data.aws_iam_policy_document.fluent_bit: Reading...
data.aws_iam_policy_document.fluent_bit: Read complete after 0s [id=2978074842]
data.aws_iam_policy_document.openobserve: Reading...
data.aws_iam_policy_document.openobserve: Read complete after 0s [id=2652188337]
data.aws_iam_policy_document.eso: Reading...
data.aws_iam_policy_document.eso: Read complete after 0s [id=2178872705]
module.lake.data.aws_iam_policy_document.lake_tls_only: Reading...
module.lake.data.aws_iam_policy_document.lake_tls_only: Read complete after 0s [id=3960055703]
module.ses.data.aws_iam_policy_document.send: Reading...
module.ses.data.aws_iam_policy_document.send: Read complete after 0s [id=3767633194]
module.network.data.aws_availability_zones.available: Read complete after 0s [id=us-east-2]
data.aws_rds_engine_version.aurora_pg: Read complete after 0s [id=17.9]
data.aws_iam_policy_document.lake_access: Reading...
data.aws_iam_policy_document.lake_access: Read complete after 0s [id=1033619361]
data.aws_iam_openid_connect_provider.github: Read complete after 0s [id=arn:aws:iam::797781631727:oidc-provider/token.actions.githubusercontent.com]
data.aws_iam_policy_document.ci_deploy_prod_trust: Reading...
data.aws_iam_policy_document.ci_deploy_prod_trust: Read complete after 1s [id=4060172364]
data.aws_iam_policy_document.ci_deploy_prod: Reading...
data.aws_iam_policy_document.ci_deploy_prod: Read complete after 0s [id=2891227359]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_iam_role_policy.ci_deploy_prod will be updated in-place
~ resource "aws_iam_role_policy" "ci_deploy_prod" {
id = "er-ci-deploy-prod:deploy-prod"
name = "deploy-prod"
~ policy = jsonencode(
~ {
~ Statement = [
# (3 unchanged elements hidden)
{
Action = [
"ecr:ListImages",
"ecr:GetAuthorizationToken",
"ecr:DescribeImages",
"ecr:BatchGetImage",
]
Effect = "Allow"
Resource = "*"
},
~ {
~ Action = "elasticloadbalancing:DescribeTargetGroups" -> [
+ "elasticloadbalancing:DescribeTargetHealth",
+ "elasticloadbalancing:DescribeTargetGroups",
]
# (2 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
# (2 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
|
athvin
marked this pull request as ready for review
November 9, 2026 20:12
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.
Closes #1060
What
Allow the production deploy role to read ALB target health. This is the Terraform prerequisite for #1043's staged cutover; it grants no AWS mutation.
Why
Proof
Terraform fmt and credential-free production validate pass. Exact-head CI passes; reviewed production plan is 0 add / 1 change / 0 destroy, adding only DescribeTargetHealth to er-ci-deploy-prod. Other stacks report no changes.
Risk & rollback
Post-merge ledger
Closed by: Codex · session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-46.lan· 2026-11-09T21:42:32.405488+00:003e95a13de0b62426128c6855eb544c88011fa20eat 20:13:08Z; main infra 42690837276, Rust 42690837203, frontend 42690837146 and devcontainer 42690836780 succeeded. The watch exceeded 30 minutes; descendants 8453c27 and a367529 also completed green main workflows. Known cutover 503s remain Investigate transient public 503 during production blue/green cutover #1043 and predate this read-only IAM change.er-readonlyIAM readback confirms DescribeTargetHealth plus the existing DescribeTargetGroups, with no registration/listener mutation permission added.Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Implementation session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-46.lan. Plan: add only DescribeTargetHealth, run Terraform fmt/validate and CI plans, merge, verify applied role before the dependent cutover implementation.