Skip to content

Commit

Permalink
fix: VERIFY_SSL=false; public repo visibility; add ec2:DescribeVpcs t…
Browse files Browse the repository at this point in the history
…o SC launch role

- VERIFY_SSL was incorrectly set to 'true' (Census CA cert not in certifi)
- repo_visibility changed from 'internal' to 'public' per ECA requirements
- Added EC2DescribeVpcs permission to SC launch role IAM policy
  • Loading branch information
Your Name committed Apr 2, 2026
1 parent 0a74dd7 commit 528f4b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ module "eks_terragrunt_repo_generator" {
environment_variables = merge(
var.additional_env_vars,
{
VERIFY_SSL = "true"
# Census CA cert is not in the container's certifi bundle; keep false until
# the image is rebuilt with the Census CA cert baked in.
VERIFY_SSL = "false"
}
)
}
Expand Down
8 changes: 8 additions & 0 deletions deploy/service_catalog.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ resource "aws_iam_role_policy" "service_catalog_launch" {
]
Resource = "*"
},
{
Sid = "EC2DescribeVpcs"
Effect = "Allow"
Action = [
"ec2:DescribeVpcs"
]
Resource = "*"
},
{
Sid = "S3ReadTemplate"
Effect = "Allow"
Expand Down
2 changes: 1 addition & 1 deletion deploy/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aws_region = "us-gov-west-1"
github_api_url = "https://github.e.it.census.gov" # GHE URL (code adds /api/v3 automatically)
github_org_name = "SCT-Engineering"
template_repo_name = "template-eks-cluster"
repo_visibility = "internal" # GHE enterprise policy blocks 'private'; use 'internal'
repo_visibility = "public" # Repos are visible to all org members on GHE
github_token_secret_name = "/eks-cluster-deployment/github_token"

# ── Service Catalog ──────────────────────────────────────────────────────
Expand Down

0 comments on commit 528f4b3

Please sign in to comment.