Skip to content

Comments

refactor: migrate 30 more AWS resources to generic Resource[C] pattern#987

Merged
james00012 merged 1 commit intomasterfrom
feat/generic-resource-aws
Jan 1, 2026
Merged

refactor: migrate 30 more AWS resources to generic Resource[C] pattern#987
james00012 merged 1 commit intomasterfrom
feat/generic-resource-aws

Conversation

@james00012
Copy link
Contributor

@james00012 james00012 commented Dec 31, 2025

Summary

  • Migrates 30 additional AWS resources from legacy BaseAwsResource to generic Resource[C] pattern
  • Consolidates *_types.go files into main resource files
  • Uses factory functions (NewXxx()) instead of struct instantiation
  • Net reduction: ~2,500 lines of code

New Resources Migrated (30)

ACM, ACMPCA, AMIs, AppRunnerService, BackupVault, CloudtrailTrail, CloudWatchAlarms, ConfigRecorders, DataSyncLocation, DataSyncTask, DynamoDB, EBApplications, ECR, EIPAddresses, EventBridgeArchive, Grafana, GuardDuty, LaunchTemplates, ManagedPrometheus, NatGateways, RdsProxy, RdsSnapshot, SecretsManagerSecrets, SesConfigurationSet, SesIdentities, Snapshots, SNSTopic, SqsQueue, TransitGatewayPeeringAttachment, TransitGatewayRouteTables

Test Plan

  • All unit tests pass
  • Build succeeds
  • Lint passes

@james00012 james00012 requested a review from denis256 as a code owner December 31, 2025 16:46
@james00012 james00012 changed the title refactor: migrate 37 AWS resources to generic Resource[C] pattern refactor: migrate 27 more AWS resources to generic Resource[C] pattern Dec 31, 2025
@james00012 james00012 force-pushed the feat/generic-resource-aws branch from 5928611 to f56d668 Compare December 31, 2025 16:57
@james00012 james00012 changed the title refactor: migrate 27 more AWS resources to generic Resource[C] pattern refactor: migrate 30 more AWS resources to generic Resource[C] pattern Dec 31, 2025
@james00012 james00012 force-pushed the feat/generic-resource-aws branch 2 times, most recently from 32e2e83 to 21aa80f Compare December 31, 2025 19:06
Migrates resources from legacy BaseAwsResource to generic Resource[C]:
- Consolidates *_types.go files into main resource files
- Uses factory functions (NewXxx) instead of struct instantiation
- Standardizes tests with table-driven patterns
@james00012 james00012 force-pushed the feat/generic-resource-aws branch from 21aa80f to 3f8b32c Compare December 31, 2025 19:18
@james00012 james00012 merged commit c450ebc into master Jan 1, 2026
11 checks passed
@james00012 james00012 deleted the feat/generic-resource-aws branch January 1, 2026 15:57
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.

2 participants