Repository navigation
feat(prod): provision a dedicated production telemetry store - #1055
Merged
Merged
Conversation
Contributor
terraform plan
prod — 10 to add, 1 to changedata.aws_caller_identity.current: Reading...
data.aws_iam_policy_document.pod_trust: Reading...
data.aws_iam_policy_document.efs_csi_trust: Reading...
data.aws_iam_policy_document.eso_trust: Reading...
data.aws_iam_policy_document.efs_csi_trust: Read complete after 0s [id=819195744]
data.aws_iam_policy_document.pod_trust: Read complete after 0s [id=819195744]
module.eks.data.aws_iam_policy_document.node_trust: Reading...
data.aws_iam_policy_document.eso_trust: Read complete after 0s [id=819195744]
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.ses.data.aws_region.current: Reading...
data.aws_iam_openid_connect_provider.github: Reading...
module.network.data.aws_availability_zones.available: Reading...
module.ses.data.aws_region.current: Read complete after 0s [id=us-east-2]
module.eks.data.aws_iam_policy_document.cluster_trust: Read complete after 0s [id=1029077455]
data.aws_rds_engine_version.aurora_pg: Reading...
module.network.data.aws_region.current: Reading...
module.network.data.aws_region.current: Read complete after 0s [id=us-east-2]
data.aws_caller_identity.current: Read complete after 0s [id=797781631727]
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.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]
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.lake_access: Reading...
data.aws_iam_policy_document.lake_access: Read complete after 0s [id=1033619361]
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 1s [id=17.9]
data.aws_iam_policy_document.ci_deploy_prod_trust: Reading...
data.aws_iam_policy_document.ci_deploy_prod_trust: Read complete after 0s [id=4060172364]
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:
# data.aws_iam_policy_document.ci_deploy_prod will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "ci_deploy_prod" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "eks:DescribeCluster",
]
+ effect = "Allow"
+ resources = [
+ "arn:aws:eks:us-east-2:797781631727:cluster/er-prod",
]
}
+ statement {
+ actions = [
+ "elasticfilesystem:DescribeAccessPoints",
+ "elasticfilesystem:DescribeFileSystems",
]
+ effect = "Allow"
+ resources = [
+ "*",
]
}
+ statement {
+ actions = [
+ "secretsmanager:DescribeSecret",
+ "secretsmanager:GetSecretValue",
]
+ effect = "Allow"
+ resources = [
+ "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/app/*",
+ (known after apply),
]
}
+ statement {
+ actions = [
+ "ecr:BatchGetImage",
+ "ecr:DescribeImages",
+ "ecr:GetAuthorizationToken",
+ "ecr:ListImages",
]
+ effect = "Allow"
+ resources = [
+ "*",
]
}
+ statement {
+ actions = [
+ "elasticloadbalancing:DescribeTargetGroups",
]
+ effect = "Allow"
+ resources = [
+ "*",
]
}
}
# data.aws_iam_policy_document.openobserve will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "openobserve" {
+ id = (known after apply)
+ json = (known after apply)
+ minified_json = (known after apply)
+ statement {
+ actions = [
+ "s3:AbortMultipartUpload",
+ "s3:DeleteObject",
+ "s3:GetObject",
+ "s3:ListMultipartUploadParts",
+ "s3:PutObject",
]
+ effect = "Allow"
+ resources = [
+ (known after apply),
]
+ sid = "SpanObjects"
}
+ statement {
+ actions = [
+ "s3:GetBucketLocation",
+ "s3:ListBucket",
+ "s3:ListBucketMultipartUploads",
]
+ effect = "Allow"
+ resources = [
+ (known after apply),
]
+ sid = "SpanList"
}
}
# aws_eks_pod_identity_association.openobserve will be created
+ resource "aws_eks_pod_identity_association" "openobserve" {
+ association_arn = (known after apply)
+ association_id = (known after apply)
+ cluster_name = "er-prod"
+ disable_session_tags = false
+ external_id = (known after apply)
+ id = (known after apply)
+ namespace = "observability"
+ region = "us-east-2"
+ role_arn = (known after apply)
+ service_account = "openobserve"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
}
# aws_iam_role.openobserve will be created
+ resource "aws_iam_role" "openobserve" {
+ arn = (known after apply)
+ assume_role_policy = jsonencode(
{
+ Statement = [
+ {
+ Action = [
+ "sts:TagSession",
+ "sts:AssumeRole",
]
+ Effect = "Allow"
+ Principal = {
+ Service = "pods.eks.amazonaws.com"
}
},
]
+ Version = "2012-10-17"
}
)
+ create_date = (known after apply)
+ force_detach_policies = false
+ id = (known after apply)
+ managed_policy_arns = (known after apply)
+ max_session_duration = 3600
+ name = "er-prod-openobserve"
+ name_prefix = (known after apply)
+ path = "/"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ unique_id = (known after apply)
+ inline_policy (known after apply)
}
# 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 = [
- {
- Action = "eks:DescribeCluster"
- Effect = "Allow"
- Resource = "arn:aws:eks:us-east-2:797781631727:cluster/er-prod"
},
- {
- Action = [
- "elasticfilesystem:DescribeFileSystems",
- "elasticfilesystem:DescribeAccessPoints",
]
- Effect = "Allow"
- Resource = "*"
},
- {
- Action = [
- "secretsmanager:GetSecretValue",
- "secretsmanager:DescribeSecret",
]
- Effect = "Allow"
- Resource = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/app/*"
},
- {
- Action = [
- "ecr:ListImages",
- "ecr:GetAuthorizationToken",
- "ecr:DescribeImages",
- "ecr:BatchGetImage",
]
- Effect = "Allow"
- Resource = "*"
},
- {
- Action = "elasticloadbalancing:DescribeTargetGroups"
- Effect = "Allow"
- Resource = "*"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
# (2 unchanged attributes hidden)
}
# aws_iam_role_policy.openobserve will be created
+ resource "aws_iam_role_policy" "openobserve" {
+ id = (known after apply)
+ name = "span-store-objects"
+ name_prefix = (known after apply)
+ policy = (known after apply)
+ role = (known after apply)
}
# aws_s3_bucket.prod_obs will be created
+ resource "aws_s3_bucket" "prod_obs" {
+ acceleration_status = (known after apply)
+ acl = (known after apply)
+ arn = (known after apply)
+ bucket = "er-prod-obs-797781631727"
+ bucket_domain_name = (known after apply)
+ bucket_namespace = (known after apply)
+ bucket_prefix = (known after apply)
+ bucket_region = (known after apply)
+ bucket_regional_domain_name = (known after apply)
+ force_destroy = false
+ hosted_zone_id = (known after apply)
+ id = (known after apply)
+ object_lock_enabled = (known after apply)
+ policy = (known after apply)
+ region = "us-east-2"
+ request_payer = (known after apply)
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ website_domain = (known after apply)
+ website_endpoint = (known after apply)
+ cors_rule (known after apply)
+ grant (known after apply)
+ lifecycle_rule (known after apply)
+ logging (known after apply)
+ object_lock_configuration (known after apply)
+ replication_configuration (known after apply)
+ server_side_encryption_configuration (known after apply)
+ versioning (known after apply)
+ website (known after apply)
}
# aws_s3_bucket_lifecycle_configuration.prod_obs will be created
+ resource "aws_s3_bucket_lifecycle_configuration" "prod_obs" {
+ bucket = (known after apply)
+ expected_bucket_owner = (known after apply)
+ id = (known after apply)
+ region = "us-east-2"
+ transition_default_minimum_object_size = "all_storage_classes_128K"
+ rule {
+ id = "expire-telemetry"
+ status = "Enabled"
# (1 unchanged attribute hidden)
+ abort_incomplete_multipart_upload {
+ days_after_initiation = 3
}
+ expiration {
+ days = 30
+ expired_object_delete_marker = false
}
+ filter {
# (1 unchanged attribute hidden)
}
}
}
# aws_s3_bucket_public_access_block.prod_obs will be created
+ resource "aws_s3_bucket_public_access_block" "prod_obs" {
+ block_public_acls = true
+ block_public_policy = true
+ bucket = (known after apply)
+ id = (known after apply)
+ ignore_public_acls = true
+ region = "us-east-2"
+ restrict_public_buckets = true
}
# aws_s3_bucket_server_side_encryption_configuration.prod_obs will be created
+ resource "aws_s3_bucket_server_side_encryption_configuration" "prod_obs" {
+ bucket = (known after apply)
+ id = (known after apply)
+ region = "us-east-2"
+ rule {
+ blocked_encryption_types = (known after apply)
+ bucket_key_enabled = (known after apply)
+ apply_server_side_encryption_by_default {
+ kms_master_key_id = (known after apply)
+ sse_algorithm = "AES256"
}
}
}
# aws_secretsmanager_secret.openobserve will be created
+ resource "aws_secretsmanager_secret" "openobserve" {
+ arn = (known after apply)
+ description = "Root credentials and metadata DSN for the production span store; consumed by scripts/obs_up.sh (and the CI deploy that calls it)."
+ force_overwrite_replica_secret = false
+ id = (known after apply)
+ name = "er/prod/openobserve"
+ name_prefix = (known after apply)
+ policy = (known after apply)
+ recovery_window_in_days = 30
+ region = "us-east-2"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
}
# aws_secretsmanager_secret_version.openobserve will be created
+ resource "aws_secretsmanager_secret_version" "openobserve" {
+ arn = (known after apply)
+ has_secret_string_wo = (known after apply)
+ id = (known after apply)
+ region = "us-east-2"
+ secret_arn = (known after apply)
+ secret_id = (known after apply)
+ secret_string = (sensitive value)
+ secret_string_wo = (write-only attribute)
+ version_id = (known after apply)
+ version_stages = (known after apply)
}
# random_password.openobserve_root will be created
+ resource "random_password" "openobserve_root" {
+ bcrypt_hash = (sensitive value)
+ id = (known after apply)
+ length = 32
+ lower = true
+ min_lower = 2
+ min_numeric = 2
+ min_special = 2
+ min_upper = 2
+ number = true
+ numeric = true
+ override_special = "!#$%*()-_=+[]{}<>:?"
+ result = (sensitive value)
+ special = true
+ upper = true
}
Plan: 10 to add, 1 to change, 0 to destroy.
|
athvin
marked this pull request as ready for review
November 9, 2026 14:42
This was referenced Nov 9, 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.
Closes #1053
Prepares #944’s owner-selected separate production telemetry store: an encrypted, private production S3 bucket with 30-day retention, its own Pod Identity role, Terraform-managed root credential and verified-TLS metadata DSN pointing at production Aurora. The production deploy role can read that one new secret. Development resources are unchanged.
This Terraform prerequisite must apply before the Kubernetes installer is enabled. The subsequent #944 change mounts the RDS trust bundle, selects production shipper settings and proves logs, metrics and traces arrive. No cross-VPC route is added.
Validation: Terraform 1.11.4 credential-free production init/validate passed; formatting passed; generated AWS inventory refreshed. Skills gate passed. CI plan 42636613745 shows prod +10/~1/-0; all other stacks unchanged. No stateful resource deletion or replacement.
Risk: additional telemetry storage and compute (compute lands separately). The bucket has prevent_destroy; rollback should disable ingestion without destroying stored data.
Post-merge ledger
Closed by: Codex · session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-28.lan· 2026-11-09T15:13:56.853088+00:00mainis green with this change on it — mergeaa4b62a39fcf9fe136166869dffd66ba2204311aat 2026-11-09T14:43:38Z; infra 42637496178 (all applies), Rust 42637496295, frontend 42637496210 and devcontainer succeeded. More than 30 minutes observed through 2026-11-09T15:13:56.853088+00:00; no new failure attributable to this change.images— n/a — Terraform/workflow-only paths changed no image inputs; no image build was required for this merge.deploy— n/a — this PR provisions infrastructure, applied by the successful infra run above. Runtime observability installation and process proof are owned by feat(prod): install isolated telemetry and operational alarms #1057.Specific to this change
er-prod-obs-797781631727, all public-access blocks, 30-day retention and three-day multipart cleanup; secreter/prod/openobservehas AWSCURRENT; associationa-kg6vyb5xtoxp2xmu6maps the production OpenObserve ServiceAccount to its dedicated role. No secret value was exported.