Skip to content

Commit

Permalink
fix: VPC-SC SA destroy sequence with default SA (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleros committed Mar 25, 2022
1 parent eafa9c0 commit 0e5420b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core_project_factory/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ resource "google_storage_bucket_iam_member" "api_s_account_storage_admin_on_proj
*****************************************/
resource "google_access_context_manager_service_perimeter_resource" "service_perimeter_attachment" {
count = var.vpc_service_control_attach_enabled ? 1 : 0
depends_on = [google_service_account.default_service_account]
perimeter_name = var.vpc_service_control_perimeter_name
resource = "projects/${google_project.main.number}"
}
Expand Down

0 comments on commit 0e5420b

Please sign in to comment.