Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
"ecs_cluster_name": "data.aws_ecs_cluster.platform_main.cluster_name",
"execution_role_arn": "data.aws_iam_role.platform_ecs_execution.arn",
"route53_zone_id": "data.aws_route53_zone.platform_main.zone_id",
"developer_boundary_arn": "data.aws_iam_policy.platform_developer_boundary.arn",
# Boundary ARN constructed from account ID — no data source needed.
# Avoids iam:GetPolicy permission requirement on the boundary policy.
"developer_boundary_arn": "NOT_USED",
},
},

Expand Down Expand Up @@ -128,7 +130,7 @@
"team": "yaml:team",
"region": "env:AWS_REGION",
"aws_account_id": "env:AWS_ACCOUNT_ID",
"permissions_boundary_arn": "ref:platform.developer_boundary_arn",
"permissions_boundary_arn": f"expr:arn:aws:iam::${{env:AWS_ACCOUNT_ID}}:policy/{PROJECT}-developer-boundary",
"trusted_services": "list:yaml:compute.trusted_service|default:ecs-tasks.amazonaws.com",
"additional_policy_jsons": "collect:access_policy_json",
},
Expand Down
6 changes: 3 additions & 3 deletions terraform/modules/platform-data/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ data "aws_route53_zone" "main" {
private_zone = false
}

data "aws_iam_policy" "developer_boundary" {
name = "${var.project}-developer-boundary"
}

# Note: the developer boundary ARN is constructed directly by expand-modules.py
# instead of using a data source, to avoid needing iam:GetPolicy permission.
1 change: 1 addition & 0 deletions terraform/org/boundary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "aws_iam_policy" "developer_boundary" {
name = "${var.project}-developer-boundary"
description = "Permission boundary for all non-platform roles. Self-replicating: roles with this boundary can only create roles that also carry it."


policy = jsonencode({
Version = "2012-10-17"
Statement = [
Expand Down