Skip to content

feat: Add custom service account on Bigquery subscription#294

Merged
lahuang4 merged 1 commit intoterraform-google-modules:mainfrom
tristan-externelama-sketch:feat/bigquery-subscription-custom-service-account
Mar 30, 2026
Merged

feat: Add custom service account on Bigquery subscription#294
lahuang4 merged 1 commit intoterraform-google-modules:mainfrom
tristan-externelama-sketch:feat/bigquery-subscription-custom-service-account

Conversation

@tristan-externelama-sketch
Copy link
Copy Markdown
Contributor

Description

This is a copy/update of the PR #280 that seems not to be active.

This PR adds support for custom service accounts in BigQuery subscriptions, allowing users to specify a service_account_email instead of relying solely on the default Pub/Sub service agent.

Changes

  • Added service_account_email optional field to bigquery_subscriptions variable
  • Configured service_account_email in the bigquery_config block
  • Updated bigquery integration test
  • Updated README.md documentation and metadata.yaml automatically by running make docker_generate_docs

Usage Example

bigquery_subscriptions = [
  {
    name                  = "my-bq-subscription"
    table                 = "project.dataset.table"
    service_account_email = "custom-sa@project.iam.gserviceaccount.com"
    write_metadata        = true
  }
]

@baptistegh
Copy link
Copy Markdown

FYI @lahuang4

@lahuang4
Copy link
Copy Markdown
Contributor

/gcbrun

@lahuang4 lahuang4 merged commit 2208fac into terraform-google-modules:main Mar 30, 2026
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