Skip to content
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

Merged
merged 7 commits into from
Feb 13, 2024

Conversation

cmalpe
Copy link
Contributor

@cmalpe cmalpe commented Jan 30, 2024

No description provided.

@cmalpe cmalpe requested review from imrannayer and a team as code owners January 30, 2024 16:55
@imrannayer imrannayer changed the title fix: added missing features for egress policies fix(TPG >= 4.68)!: added missing features for egress policies Feb 7, 2024
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer
Copy link
Collaborator

/gcbrun

@g-awmalik g-awmalik self-assigned this Feb 9, 2024
@@ -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)]
Copy link
Contributor

@g-awmalik g-awmalik Feb 9, 2024

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

Copy link
Collaborator

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 = ....

Copy link
Contributor Author

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

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer self-requested a review February 13, 2024 20:48
@imrannayer imrannayer merged commit c6df326 into terraform-google-modules:master Feb 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants