feat: Add GCP restore job support (VM, Disk, Cloud SQL, Cloud Storage, BigQuery)#63
Merged
oryanomer1 merged 7 commits intomainfrom Feb 23, 2026
Merged
Conversation
…, BigQuery) - Add GCP Compute Engine instance restore (full) via gcp_vm_config - Add GCP Disk restore (partial) via gcp_disk_config - Add GCP Cloud SQL restore via gcp_cloud_sql_config - Add GCS bucket/file restore via gcs_bucket_config / gcs_file_config - Add BigQuery dataset restore via gcp_bigquery_restore_dataset_config with optional table filtering - Add BigQuery restore client method with custom HTTP call to restore-bigquery-dataset endpoint - Add GCP client methods: StartGcpVmInstanceRestore, StartGcpDiskRestore, StartGcpCloudSqlRestore - Add vault validation: reject aws_kms_key_arn for non-AWS providers - Upgrade eon-sdk-go v1.88.0 -> v1.89.0 - Update examples and auto-generated docs
yaara-ze
reviewed
Feb 22, 2026
yaara-ze
reviewed
Feb 22, 2026
yaara-ze
reviewed
Feb 22, 2026
yaara-ze
reviewed
Feb 22, 2026
yaara-ze
reviewed
Feb 22, 2026
yaara-ze
approved these changes
Feb 22, 2026
- Extract parseMapAttribute helper to deduplicate tag/label parsing - Rename S3FileParam → FileRestoreParam (shared by S3, GCS, BigQuery) - Mark required GCP fields as Required in schema (zone, name, etc.) so Terraform fails on plan, not apply - Remove redundant runtime validations for schema-enforced fields
Terraform enforces Required attributes across ALL resources of a type, even when the containing SingleNestedBlock is absent. This caused 'Missing Configuration for Required Attribute' errors when e.g. a BigQuery restore resource didn't specify gcp_vm_config.dataset_id. Reverted to Optional with runtime validation in create methods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds GCP restore job support to the
eon_restore_jobresource, covering all GCP resource types.New GCP Restore Types
restore_typeGCP_COMPUTE_ENGINE_INSTANCEfullgcp_vm_configGCP_COMPUTE_ENGINE_INSTANCEpartialgcp_disk_configGCP_DISKgcp_disk_configGCP_CLOUD_SQL_INSTANCEfullgcp_cloud_sql_configGCP_CLOUD_STORAGE_BUCKETfullgcs_bucket_configGCP_CLOUD_STORAGE_BUCKETpartialgcs_file_configGCP_BIG_QUERYfullgcp_bigquery_restore_dataset_configChanges
internal/provider/restore_job_resource.goGcpVmRestoreConfig,GcpDiskRestoreConfig,GcpCloudSqlRestoreConfig,GcsBucketRestoreConfig,GcsFileRestoreConfig,GcpBigQueryDatasetRestoreConfigGCP_COMPUTE_ENGINE_INSTANCE,GCP_DISK,GCP_CLOUD_SQL_INSTANCE,GCP_CLOUD_STORAGE_BUCKET,GCP_BIG_QUERYinternal/client/client.goStartGcpVmInstanceRestore,StartGcpDiskRestore,StartGcpCloudSqlRestoreusing SDK methodsStartBigQueryDatasetRestorewith custom HTTP call torestore-bigquery-datasetendpoint (SDK doesn't have this method yet)BigQueryRestoreRequest/BigQueryRestoreDestination/BigQueryRestoreResponsetypesinternal/provider/resource_vault.goaws_kms_key_arnwhencloud_provideris not AWSOther
eon-sdk-gov1.88.0 → v1.89.0Testing
restore-bigquery-datasetAPI endpoint