Skip to content

Conversation

@james00012
Copy link
Contributor

@james00012 james00012 commented Jan 6, 2026

Summary

GCP Adapter:

  • Add WrapGcpInitClient helper matching AWS's WrapAwsInitClient pattern
  • Add DefaultBatchSize and DefaultWaitTimeout constants
  • Update gcs_bucket.go to use the new helper

AWS Resources (9 files):

  • Fix missing r.Scope.Region = cfg.Region in InitClient
  • Affected: apigateway, apigatewayv2, dynamodb, ebs, ec2_egress_only_igw, network_firewall_resource_policy, rds, rds_parameter_group, rds_subnet_group
  • Without this, logs show empty region (e.g., "Deleting 5 dynamodb in " instead of "Deleting 5 dynamodb in us-east-1")

Test plan

  • go build ./... passes
  • go test ./... passes

@james00012 james00012 requested a review from denis256 as a code owner January 6, 2026 19:47
- Add WrapGcpInitClient helper matching AWS's WrapAwsInitClient pattern
- Add GCP constants (DefaultBatchSize, DefaultWaitTimeout) for consistency
- Improve GCP adapter documentation to match AWS quality
- Update gcs_bucket.go to use WrapGcpInitClient with proper error handling
- Replace silent failures with panics for programming errors
@james00012 james00012 force-pushed the refactor/gcp-adapter-type-safety branch from b221249 to 9853a58 Compare January 6, 2026 19:51
These resources were missing r.Scope.Region = cfg.Region in InitClient,
causing empty region in logs (e.g., "Deleting 5 dynamodb in " instead of
"Deleting 5 dynamodb in us-east-1").

Affected resources:
- apigateway
- apigatewayv2
- dynamodb
- ebs
- ec2_egress_only_igw
- network_firewall_resource_policy
- rds
- rds_parameter_group
- rds_subnet_group
@james00012 james00012 changed the title refactor: add type-safe WrapGcpInitClient helper for GCP resources refactor: add type-safe WrapGcpInitClient and fix missing Scope.Region Jan 6, 2026
@james00012 james00012 merged commit 27cbcfb into master Jan 6, 2026
11 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