sourcerepo and cloudbuild at 01-resman
This commit is contained in:
parent
6c63c6aed8
commit
2eb996d33d
|
@ -36,7 +36,8 @@ module "automation-project" {
|
||||||
# machine (service accounts) IAM bindings
|
# machine (service accounts) IAM bindings
|
||||||
iam = {
|
iam = {
|
||||||
"roles/owner" = [
|
"roles/owner" = [
|
||||||
module.automation-tf-bootstrap-sa.iam_email
|
module.automation-tf-bootstrap-sa.iam_email,
|
||||||
|
module.automation-tf-resman-sa.iam_email
|
||||||
]
|
]
|
||||||
"roles/iam.serviceAccountAdmin" = [
|
"roles/iam.serviceAccountAdmin" = [
|
||||||
module.automation-tf-resman-sa.iam_email
|
module.automation-tf-resman-sa.iam_email
|
||||||
|
|
|
@ -35,7 +35,7 @@ module "branch-network-cicd-repo" {
|
||||||
fast-02-networking = {
|
fast-02-networking = {
|
||||||
filename = ".cloudbuild/workflow.yaml"
|
filename = ".cloudbuild/workflow.yaml"
|
||||||
included_files = ["**/*tf", ".cloudbuild/workflow.yaml"]
|
included_files = ["**/*tf", ".cloudbuild/workflow.yaml"]
|
||||||
service_account = module.branch-network-sa.id
|
service_account = module.branch-network-sa-cicd.0.id
|
||||||
substitutions = {}
|
substitutions = {}
|
||||||
template = {
|
template = {
|
||||||
project_id = null
|
project_id = null
|
||||||
|
|
|
@ -35,7 +35,7 @@ module "branch-security-cicd-repo" {
|
||||||
fast-02-security = {
|
fast-02-security = {
|
||||||
filename = ".cloudbuild/workflow.yaml"
|
filename = ".cloudbuild/workflow.yaml"
|
||||||
included_files = ["**/*tf", ".cloudbuild/workflow.yaml"]
|
included_files = ["**/*tf", ".cloudbuild/workflow.yaml"]
|
||||||
service_account = module.branch-security-sa.id
|
service_account = module.branch-security-sa-cicd.0.id
|
||||||
substitutions = {}
|
substitutions = {}
|
||||||
template = {
|
template = {
|
||||||
project_id = null
|
project_id = null
|
||||||
|
|
|
@ -37,7 +37,7 @@ module "branch-teams-dev-pf-cicd-repo" {
|
||||||
included_files = [
|
included_files = [
|
||||||
"**/*json", "**/*tf", "**/*yaml", ".cloudbuild/workflow.yaml"
|
"**/*json", "**/*tf", "**/*yaml", ".cloudbuild/workflow.yaml"
|
||||||
]
|
]
|
||||||
service_account = module.branch-teams-dev-pf-sa.iam_email
|
service_account = module.branch-teams-dev-pf-sa-cicd.0.id
|
||||||
substitutions = {}
|
substitutions = {}
|
||||||
template = {
|
template = {
|
||||||
project_id = null
|
project_id = null
|
||||||
|
@ -68,7 +68,7 @@ module "branch-teams-prod-pf-cicd-repo" {
|
||||||
included_files = [
|
included_files = [
|
||||||
"**/*json", "**/*tf", "**/*yaml", ".cloudbuild/workflow.yaml"
|
"**/*json", "**/*tf", "**/*yaml", ".cloudbuild/workflow.yaml"
|
||||||
]
|
]
|
||||||
service_account = module.branch-teams-prod-pf-sa.iam_email
|
service_account = module.branch-teams-prod-pf-sa-cicd.0.id
|
||||||
substitutions = {}
|
substitutions = {}
|
||||||
template = {
|
template = {
|
||||||
project_id = null
|
project_id = null
|
||||||
|
|
|
@ -146,7 +146,9 @@ output "cicd_repositories" {
|
||||||
for k, v in local.cicd_repositories : k => {
|
for k, v in local.cicd_repositories : k => {
|
||||||
branch = v.branch
|
branch = v.branch
|
||||||
name = v.name
|
name = v.name
|
||||||
provider = local.identity_providers[v.identity_provider].name
|
provider = try(
|
||||||
|
local.identity_providers[v.identity_provider].name, null
|
||||||
|
)
|
||||||
service_account = local.cicd_workflow_attrs[k].service_account
|
service_account = local.cicd_workflow_attrs[k].service_account
|
||||||
} if v != null
|
} if v != null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue