Add oauth proxy and supporting ecr infra

This commit is contained in:
Ian Keane 2026-08-22 14:33:10 -04:00
parent 675edad612
commit bd1c17b09b
11 changed files with 222 additions and 2 deletions

View file

@ -57,3 +57,25 @@ resource "aws_iam_role_policy" "node_secrets_manager" {
})
}
# ECR pull access for node (to pull custom images like mcp-auth-proxy)
resource "aws_iam_role_policy" "node_ecr" {
name = "ecr-pull"
role = aws_iam_role.node.id
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:BatchCheckLayerAvailability",
"ecr:GetAuthorizationToken"
]
Resource = "*"
}
]
})
}