-
Notifications
You must be signed in to change notification settings - Fork 5
update to sdk-v2 #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to sdk-v2 #48
Conversation
MartinWeindel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks good to me overall. Only one small change request to get rid of the old AWS sdk dependency.
go.mod
Outdated
| go 1.23.0 | ||
|
|
||
| require ( | ||
| github.com/aws/aws-sdk-go v1.55.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore.
| github.com/aws/aws-sdk-go v1.55.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must have missed something. Lemme check again
MartinWeindel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
AndreasBurger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
pkg/updater/ec2.go
Outdated
| for _, tag := range tags { | ||
| if aws.StringValue(tag.Key) == "Name" { | ||
| return aws.StringValue(tag.Value) | ||
| if ptr.Deref(tag.Key, "") == "Name" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also use aws.ToString(), up to you.
MartinWeindel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #46
Special notes for your reviewer:
Release note: