Skip to content

Conversation

@ipmb
Copy link
Member

@ipmb ipmb commented Nov 9, 2025

No description provided.

@ipmb ipmb requested a review from Copilot November 9, 2025 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the codebase from AWS SDK for Go v1 to v2, a significant update that modernizes the AWS service interactions. The migration includes updating all AWS service clients, changing from pointer-based to value-based types, and introducing proper context usage throughout.

Key Changes:

  • Migrated from github.com/aws/aws-sdk-go to github.com/aws/aws-sdk-go-v2 with all required service packages
  • Replaced *session.Session with aws.Config throughout the codebase
  • Added context.Background() to all AWS API calls per SDK v2 requirements
  • Updated CloudFormation, DynamoDB, ECS, SSM, and other AWS service usage patterns to match v2 SDK patterns

Reviewed Changes

Copilot reviewed 47 out of 48 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
go.mod, go.sum Added AWS SDK v2 dependencies and removed v1-specific packages
version/version_test.go Updated context usage from context.TODO() to context.Background()
stacks/*.go Migrated all stack operations to SDK v2 with proper type conversions and context usage
bridge/*.go Updated CloudFormation and Route53 bridge functions to use SDK v2
auth/*.go Replaced session-based auth with aws.Config and added new console URL generation
app/*.go Comprehensive SDK v2 migration including DynamoDB, ECS, SSM, and S3 operations
cmd/*.go Updated all command implementations to use aws.Config instead of sessions
metrics/metrics.go Updated CloudWatch metric queries to use SDK v2 types
ddb/ddb.go Migrated DynamoDB operations and attribute value handling to SDK v2
aws/*.go Updated internal AWS wrappers to use aws.Config and SDK v2 patterns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ipmb and others added 4 commits November 9, 2025 15:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Resolved conflicts in multiple files to complete AWS SDK v1 to v2 migration:
- app/app.go: Combined StartBuild function improvements with v2 SDK types
- app/builds.go: Kept v2 SDK imports
- cmd/access.go: Combined default parameters logic with v2 SDK types
- cmd/modify.go: Converted from session.Session to aws.Config
- stacks/app_pipeline.go: Added helper question functions, fixed newline literals
- stacks/interfaces.go: Converted from v1 to v2 types with improved field mapping
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 48 out of 49 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ipmb ipmb merged commit 2dfea76 into main Nov 10, 2025
10 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.

2 participants