Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use local.zone fallback for replica region calculation#760

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
imrannayer merged 3 commits intoterraform-google-modules:mainfromyasra002:patch-3
Aug 15, 2025

Conversation

@yasra002
Copy link
Contributor

@yasra002yasra002 commentedAug 12, 2025
edited
Loading

Fixes potential null reference errors when var.zone is not specified by using the local.zone fallback that defaults to first available zone.

fixes:#761

╷│ Error: Invalid function argument│ │   on .terraform/modules/pg.this.cloud_psql/modules/postgresql/read_replica.tf line 40, in resource "google_sql_database_instance" "replicas":│   40:   encryption_key_name  = (join("-", slice(split("-", lookup(each.value, "zone", var.zone)), 0, 2))) == var.region ? null : each.value.encryption_key_name│     ├────────────────│     │ while calling split(separator, str)│     │ each.value is object with 16 attributes│     │ var.zone is null│ │ Invalid value for "str" parameter: argument must not be null.╵

Fixes potential null reference errors when var.zone is not specifiedby using the local.zone fallback that defaults to first available zone.
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayerimrannayer merged commit4eb9309 intoterraform-google-modules:mainAug 15, 2025
4 checks passed
@yasra002yasra002 deleted the patch-3 branchSeptember 1, 2025 11:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@imrannayerimrannayerimrannayer approved these changes

@ayushmjainayushmjainAwaiting requested review from ayushmjainayushmjain is a code owner

@q2wq2wAwaiting requested review from q2wq2w is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PostgreSQL read replica fails when var.zone is null due to inconsistent zone fallback usage

2 participants

@yasra002@imrannayer

[8]ページ先頭

©2009-2025 Movatter.jp