You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[audit] Dup: per-region EC2 client boilerplate repeated ~43+ times in pkg/aws — add c.regionalEC2(region) #297
Deferred from the Phase 0/1 cleanup batch (PR #331). This spans 40+ ec2.NewFromConfig/cfg.Copy() sites across pkg/aws on the launch/describe hot path, and the finding itself rated it optional ("do when touching files"). Bundling it with the small dup cleanups would have made #331 hard to review and risky. Keeping it open as its own focused PR — the c.regionalEC2(region) helper + retiring getRegionalConfig (whose error is always nil, so its callers have dead if err != nil branches to remove too).
Activity
scttfrdmn commentedon Jul 11, 2026
Deferred from the Phase 0/1 cleanup batch (PR #331). This spans 40+
ec2.NewFromConfig/cfg.Copy()sites acrosspkg/awson the launch/describe hot path, and the finding itself rated it optional ("do when touching files"). Bundling it with the small dup cleanups would have made #331 hard to review and risky. Keeping it open as its own focused PR — thec.regionalEC2(region)helper + retiringgetRegionalConfig(whose error is always nil, so its callers have deadif err != nilbranches to remove too).fix(config): accept day unit in config durations; de-dup helpers (#294-…
fix(config): accept day unit in config durations; de-dup helpers (#294-…
refactor(aws): collapse per-region client boilerplate into helpers (#297
refactor(aws): collapse per-region client boilerplate into helpers (#297