Skip to content

Commit

Permalink
Add compute.xpnAdmin for GitHub service accounts on network folders
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis committed Aug 13, 2023
1 parent 47f9223 commit 76b18b0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: no-commit-to-branch

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0
rev: v1.81.2
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
2 changes: 1 addition & 1 deletion global/infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 4.68.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 4.77.0 |

## Modules

Expand Down
24 changes: 21 additions & 3 deletions global/infra/tfvars/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ folder_iam_policies = {

13103602325 = {
team = "Platform - Landing Zone"
service = "Services"
service = "Networking"
environment = "Sandbox"
bindings = [
{
Expand All @@ -131,6 +131,12 @@ folder_iam_policies = {
]
role = "roles/resourcemanager.folderIamAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf91-sb.iam.gserviceaccount.com"
]
role = "roles/compute.xpnAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf91-sb.iam.gserviceaccount.com"
Expand All @@ -142,7 +148,7 @@ folder_iam_policies = {

345391277536 = {
team = "Platform - Landing Zone"
service = "Services"
service = "Networking"
environment = "Non-Production"
bindings = [
{
Expand All @@ -151,6 +157,12 @@ folder_iam_policies = {
]
role = "roles/resourcemanager.folderIamAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf05-nonprod.iam.gserviceaccount.com"
]
role = "roles/compute.xpnAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf05-nonprod.iam.gserviceaccount.com"
Expand All @@ -162,7 +174,7 @@ folder_iam_policies = {

1033174574192 = {
team = "Platform - Landing Zone"
service = "Services"
service = "Networking"
environment = "Production"
bindings = [
{
Expand All @@ -171,6 +183,12 @@ folder_iam_policies = {
]
role = "roles/resourcemanager.folderIamAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf62-prod.iam.gserviceaccount.com"
]
role = "roles/compute.xpnAdmin"
},
{
members = [
"serviceAccount:plt-lz-networking-github@ptl-lz-terraform-tf62-prod.iam.gserviceaccount.com"
Expand Down

0 comments on commit 76b18b0

Please sign in to comment.