AWS GOLANG SDK V2

Gophers Meetup #22

19:00 25 January 2018

Kai Hendry

Why use Go and the AWS SDK ?

Production stuff I've worked on

Lambda

Track only errors:

apex --env prod logs -F error -f

Debug with sns payload

apex -ldebug --env stage invoke batch --logs < sns.json

AWS SDK v1

AWS SDK v2

Bad news:

Good news:

AWS SDK V2 on Github

Why are there (still) conversion utilities?

result, err := svc.GetObject(&s3.GetObjectInput {
   Bucket: aws.String(myBucket),
   Key: aws.String(myKey),
})

Pagination

_, err := req.Send()

Configuration

cfg, err := external.LoadDefaultAWSConfig(external.WithSharedConfigProfile("mine"))

Performance

and again discoverability

Check out v2

BONUS SCREENCAST vim-go workflow updating to v2

Thank you

19:00 25 January 2018