mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
768 B
HCL
27 lines
768 B
HCL
resource "google_sourcerepo_repository" "fleet-infra" {
|
|
name = "fleet-infra-${random_pet.suffix.id}"
|
|
}
|
|
|
|
resource "google_sourcerepo_repository" "application" {
|
|
name = "application-${random_pet.suffix.id}"
|
|
}
|
|
|
|
resource "google_sourcerepo_repository_iam_binding" "application_binding" {
|
|
project = google_sourcerepo_repository.application.project
|
|
repository = google_sourcerepo_repository.application.name
|
|
role = "roles/source.admin"
|
|
members = [
|
|
"user:${var.gcp_email}",
|
|
]
|
|
}
|
|
|
|
resource "google_sourcerepo_repository_iam_binding" "fleet-infra_binding" {
|
|
project = google_sourcerepo_repository.fleet-infra.project
|
|
repository = google_sourcerepo_repository.fleet-infra.name
|
|
role = "roles/source.admin"
|
|
members = [
|
|
"user:${var.gcp_email}",
|
|
]
|
|
}
|
|
|