-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(TPG >= 4.68)!: added missing features for egress policies #131
Conversation
chore: update .github/workflows/stale.yml
/gcbrun |
/gcbrun |
@@ -28,13 +28,15 @@ resource "google_access_context_manager_service_perimeter" "regular_service_peri | |||
|
|||
status { | |||
restricted_services = var.restricted_services | |||
resources = [for item in var.resources : can(regex("global/networks", item)) ? format("//compute.googleapis.com/%s", item) : format("projects/%s", item)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is adding the resource i.e. the project to the perimeter and then google_access_context_manager_service_perimeter_resource
below tries to add it again leading to:
STDERR: Error: Unable to create ServicePerimeterResource, existing object already found: map[resource:projects/838237599229]
with module.example.module.regular_service_perimeter_1.google_access_context_manager_service_perimeter_resource.service_perimeter_resource["838237599229"],
on ../../../modules/regular_service_perimeter/main.tf line 229, in resource "google_access_context_manager_service_perimeter_resource" "service_perimeter_resource":
229: resource "google_access_context_manager_service_perimeter_resource" "service_perimeter_resource" {
---- End output of terraform apply -auto-approve -lock=true -lock-timeout=0s -input=false -no-color -paral
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cmalpe can u plz remove resource = ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is done @imrannayer
/gcbrun |
No description provided.