Skip to content

location attribute incorrectly marked as optional for cross-cloud interconnect#13665

Merged
BBBmau merged 1 commit intoGoogleCloudPlatform:mainfrom
abhijeetkjha-google:main
Apr 23, 2025
Merged

location attribute incorrectly marked as optional for cross-cloud interconnect#13665
BBBmau merged 1 commit intoGoogleCloudPlatform:mainfrom
abhijeetkjha-google:main

Conversation

@abhijeetkjha-google
Copy link
Copy Markdown
Contributor

@abhijeetkjha-google abhijeetkjha-google commented Apr 14, 2025

compute: marked `location` field as required in `google_compute_interconnect` resource

On the resource 'google_compute_interconnect', the attribute 'location' is incorrectly marked as optional, even for cross-cloud interconnect. It needs to be required.

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_interconnect
location - (Optional) URL of the InterconnectLocation object that represents where this connection is to be provisioned. Specifies the location inside Google's Networks, should not be passed in case of cross-cloud interconnect.

It should be marked as a required field, the customer has to provide a location for all interconnects regardless of whether it's cross cloud or not.

Signed-off-by: Abhijeet Jha <abhijeetkjha@google.com>
@github-actions github-actions bot requested a review from BBBmau April 14, 2025 08:30
@github-actions
Copy link
Copy Markdown

Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs.

@BBBmau, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions
Copy link
Copy Markdown

@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@github-actions
Copy link
Copy Markdown

@GoogleCloudPlatform/terraform-team @BBBmau This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@abhijeetkjha-google
Copy link
Copy Markdown
Contributor Author

Hi @BBBmau , Could you please take a look at this PR when you have a moment? Thanks!

Copy link
Copy Markdown
Collaborator

@BBBmau BBBmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching this! Confirming the issue from testing this the example configuration but without the field set

image

@BBBmau BBBmau added this pull request to the merge queue Apr 23, 2025
Merged via the queue into GoogleCloudPlatform:main with commit b5195e9 Apr 23, 2025
13 of 16 checks passed
NandiniAgrawal15 pushed a commit to NandiniAgrawal15/magic-modules that referenced this pull request Apr 26, 2025
…erconnect (GoogleCloudPlatform#13665)

Signed-off-by: Abhijeet Jha <abhijeetkjha@google.com>
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request May 13, 2025
…erconnect (GoogleCloudPlatform#13665)

Signed-off-by: Abhijeet Jha <abhijeetkjha@google.com>
jingqizz pushed a commit to jingqizz/magic-modules that referenced this pull request Jul 9, 2025
…erconnect (GoogleCloudPlatform#13665)

Signed-off-by: Abhijeet Jha <abhijeetkjha@google.com>
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.

2 participants