Skip to content

Continue migrating ecs-agent module to aws-sdk-go-v2#4583

Merged
Yiyuanzzz merged 1 commit into
aws:devfrom
Yiyuanzzz:v2
Apr 25, 2025
Merged

Continue migrating ecs-agent module to aws-sdk-go-v2#4583
Yiyuanzzz merged 1 commit into
aws:devfrom
Yiyuanzzz:v2

Conversation

@Yiyuanzzz
Copy link
Copy Markdown
Contributor

@Yiyuanzzz Yiyuanzzz commented Apr 18, 2025

Summary

This PR continues the migration of the ecs-agent module to aws-sdk-go-v2.

It updates additional files to use SDK v2,a few files still remain and will be migrated in follow-up PRs.

Implementation details

  • aws/arn, and aws/request were updated to their v2 equivalents
  • aws.StringValue, aws.Int32Value, aws.Bool, aws.StringValueSlice were replaced with aws.ToString, aws.ToInt32aws.ToBool, and aws.ToStringSlice.

Testing

New tests cover the changes: no

Description for the changelog

Enhancement: Migrated more ecs-agent files to use aws-sdk-go-v2

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

Does this PR include the addition of new environment variables in the README?

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Yiyuanzzz Yiyuanzzz requested a review from a team as a code owner April 18, 2025 23:20
@Yiyuanzzz Yiyuanzzz changed the title migrate to aws sdk go v2 Migrate remaining ecs-agent files to aws-sdk-go-v2 Apr 18, 2025
@Yiyuanzzz Yiyuanzzz changed the title Migrate remaining ecs-agent files to aws-sdk-go-v2 Continue migrating ecs-agent module to aws-sdk-go-v2 Apr 18, 2025
Comment thread ecs-agent/tmds/handlers/taskprotection/v1/handlers/handlers_test.go Outdated
@Yiyuanzzz Yiyuanzzz enabled auto-merge (squash) April 24, 2025 22:40
@Yiyuanzzz Yiyuanzzz disabled auto-merge April 24, 2025 22:40
@Yiyuanzzz Yiyuanzzz enabled auto-merge (squash) April 24, 2025 22:40
@Yiyuanzzz Yiyuanzzz merged commit fb64dd3 into aws:dev Apr 25, 2025
40 checks passed
timj-hh pushed a commit to timj-hh/amazon-ecs-agent that referenced this pull request Jul 19, 2025
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.

4 participants