bouwroute-devops/infra/modules/harbor/main.tf

20 lines
470 B
HCL

resource "harbor_project" "example_project" {
name = "example-project"
public = false
vulnerability_scanning = true
}
resource "harbor_robot_account" "example_robot" {
name = "example-robot"
description = "Robot account for example project"
level = "project"
permissions {
access {
action = "push"
resource = "repository"
}
kind = "project"
namespace = harbor_project.example_project.name
}
}