Skip to content

Conversation

@yasra002
Copy link
Contributor

@yasra002 yasra002 commented Aug 7, 2025

Add service attachment outputs for Postgres replicas

fixes : #762

Google's Terraform module for Postgres does not currently expose service attachment outputs for replicas,.This PR adds outputs for the service attachments of Postgres replicas in the Google Cloud SQL Terraform module.
The module already exposes the service attachment for the primary instance, but not for any replicas. This fills that gap so we can reference replica attachments just like the primary.

@yasra002 yasra002 requested review from a team, ayushmjain, imrannayer and q2w as code owners August 7, 2025 11:58
@google-cla
Copy link

google-cla bot commented Aug 7, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@yasra002 yasra002 changed the title Output the Service Attachment links for Replicas fix: Output the Service Attachment links for Replicas Aug 12, 2025
@imrannayer
Copy link
Collaborator

@yasra002 thanks for the PR. can u plz fix lint issues. Follow this guid
https://github.com/terraform-google-modules/terraform-google-sql-db/blob/main/CONTRIBUTING.md

@imrannayer imrannayer added the waiting-response Waiting for issue author to respond. label Aug 13, 2025
yasser.rasheed@schibsted.com and others added 2 commits August 14, 2025 17:06
@yasra002
Copy link
Contributor Author

yasra002 commented Aug 14, 2025

@imrannayer Thanks for the reply. I have now fixed the linting issue.

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer changed the title fix: Output the Service Attachment links for Replicas feat: Output the Service Attachment links for Replicas Aug 15, 2025
@imrannayer imrannayer removed the waiting-response Waiting for issue author to respond. label Aug 15, 2025
@imrannayer imrannayer merged commit e5446b7 into terraform-google-modules:main Aug 15, 2025
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.

Missing PSC attachment output for read replicas in PostgreSQL module

2 participants