Add oauth proxy and supporting ecr infra
This commit is contained in:
parent
675edad612
commit
bd1c17b09b
11 changed files with 222 additions and 2 deletions
|
|
@ -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 = "*"
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue