Migrate ECR to forgejo container registry
This commit is contained in:
parent
bd1c17b09b
commit
bbea068e12
7 changed files with 47 additions and 70 deletions
|
|
@ -58,24 +58,3 @@ 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