Skip to content

compute: added google_compute_service_attachments plural data source#18323

Open
vr-ibm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
vr-ibm:identity-coverage-check
Open

compute: added google_compute_service_attachments plural data source#18323
vr-ibm wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
vr-ibm:identity-coverage-check

Conversation

@vr-ibm

@vr-ibm vr-ibm commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Adds a new plural data source google_compute_service_attachments that lists all service attachments in a given project and region, enabling discovery without hardcoding names or self_links.

Details

  • Calls the serviceAttachments.list compute API with pagination support
  • Accepts optional project, region, and filter arguments
  • Returns a service_attachments list with key attributes: name, self_link, target_service, connection_preference, nat_subnets, enable_proxy_protocol, domain_names, fingerprint, region
  • Adds acceptance test TestAccDataSourceGoogleComputeServiceAttachments_basic
  • Adds documentation

Tests

  • TestAccDataSourceGoogleComputeServiceAttachments_basic

Release Note Template for Downstream PRs (will be copied)

`google_compute_service_attachments` - new plural data source for listing service attachments by project and region

Adds a new diff-processor subcommand that detects resources declaring
ResourceIdentity but missing SetResourceIdentityAttributes calls in
Create/Read/Update functions, or missing import identity tests
(TestAcc*_importBlockWithResourceIdentity).

Only resources changed in the PR (from schema diff) are checked,
avoiding false positives on existing resources.

This helps prevent PRs from introducing ResourceIdentity blocks without
full CRUD coverage.
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Jul 17, 2026
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 26d416e:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@vr-ibm

vr-ibm commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

/gcbrun

@vr-ibm
vr-ibm marked this pull request as ready for review July 17, 2026 21:52
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 17, 2026
@vr-ibm
vr-ibm requested a review from BBBmau July 17, 2026 21:53
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 17, 2026
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 26d416e:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

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