Skip to content

Commit 8cac689

Browse files
authored
update kinesis datasource to aws sdk v2 (#3846)
1 parent 9ee04bb commit 8cac689

File tree

7 files changed

+177
-106
lines changed

7 files changed

+177
-106
lines changed

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ require (
1111
github.com/alexliesenfeld/health v0.8.1
1212
github.com/appleboy/gin-jwt/v2 v2.10.3
1313
github.com/aws/aws-lambda-go v1.47.0
14-
github.com/aws/aws-sdk-go v1.52.0
1514
github.com/aws/aws-sdk-go-v2 v1.38.3
1615
github.com/aws/aws-sdk-go-v2/config v1.31.6
16+
github.com/aws/aws-sdk-go-v2/credentials v1.18.10 // indirect
1717
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.19.4
1818
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.57.2
19+
github.com/aws/aws-sdk-go-v2/service/kinesis v1.40.1
1920
github.com/aws/aws-sdk-go-v2/service/s3 v1.87.3
2021
github.com/aws/aws-sdk-go-v2/service/sqs v1.42.3
2122
github.com/beevik/etree v1.4.1
@@ -107,7 +108,6 @@ require (
107108
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
108109
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
109110
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.1 // indirect
110-
github.com/aws/aws-sdk-go-v2/credentials v1.18.10 // indirect
111111
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.6 // indirect
112112
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.6 // indirect
113113
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.6 // indirect
@@ -164,7 +164,6 @@ require (
164164
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
165165
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
166166
github.com/jackc/pgtype v1.14.0 // indirect
167-
github.com/jmespath/go-jmespath v0.4.0 // indirect
168167
github.com/josharian/intern v1.0.0 // indirect
169168
github.com/json-iterator/go v1.1.12 // indirect
170169
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect

go.sum

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3d
4646
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
4747
github.com/aws/aws-lambda-go v1.47.0 h1:0H8s0vumYx/YKs4sE7YM0ktwL2eWse+kfopsRI1sXVI=
4848
github.com/aws/aws-lambda-go v1.47.0/go.mod h1:dpMpZgvWx5vuQJfBt0zqBha60q7Dd7RfgJv23DymV8A=
49-
github.com/aws/aws-sdk-go v1.52.0 h1:ptgek/4B2v/ljsjYSEvLQ8LTD+SQyrqhOOWvHc/VGPI=
50-
github.com/aws/aws-sdk-go v1.52.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
5149
github.com/aws/aws-sdk-go-v2 v1.38.3 h1:B6cV4oxnMs45fql4yRH+/Po/YU+597zgWqvDpYMturk=
5250
github.com/aws/aws-sdk-go-v2 v1.38.3/go.mod h1:sDioUELIUO9Znk23YVmIk86/9DOpkbyyVb1i/gUNFXY=
5351
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.1 h1:i8p8P4diljCr60PpJp6qZXNlgX4m2yQFpYk+9ZT+J4E=
@@ -78,6 +76,8 @@ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.6 h1:LHS1YAIJX
7876
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.6/go.mod h1:c9PCiTEuh0wQID5/KqA32J+HAgZxN9tOGXKCiYJjTZI=
7977
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.6 h1:nEXUSAwyUfLTgnc9cxlDWy637qsq4UWwp3sNAfl0Z3Y=
8078
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.6/go.mod h1:HGzIULx4Ge3Do2V0FaiYKcyKzOqwrhUZgCI77NisswQ=
79+
github.com/aws/aws-sdk-go-v2/service/kinesis v1.40.1 h1:9QC0AF6gakV1TZuGp3NEUNl/6gXt3rfIifnxd+dWwbw=
80+
github.com/aws/aws-sdk-go-v2/service/kinesis v1.40.1/go.mod h1:UpSQbmXxFiDGDrvqsTgEm3YijDf9cg/Ti+s2W0SeFEU=
8181
github.com/aws/aws-sdk-go-v2/service/s3 v1.87.3 h1:ETkfWcXP2KNPLecaDa++5bsQhCRa5M5sLUJa5DWYIIg=
8282
github.com/aws/aws-sdk-go-v2/service/s3 v1.87.3/go.mod h1:+/3ZTqoYb3Ur7DObD00tarKMLMuKg8iqz5CHEanqTnw=
8383
github.com/aws/aws-sdk-go-v2/service/sqs v1.42.3 h1:0dWg1Tkz3FnEo48DgAh7CT22hYyMShly8WMd3sGx0xI=
@@ -362,10 +362,6 @@ github.com/jedib0t/go-pretty/v6 v6.6.7 h1:m+LbHpm0aIAPLzLbMfn8dc3Ht8MW7lsSO4MPIt
362362
github.com/jedib0t/go-pretty/v6 v6.6.7/go.mod h1:YwC5CE4fJ1HFUDeivSV1r//AmANFHyqczZk+U6BDALU=
363363
github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c=
364364
github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo=
365-
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
366-
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
367-
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
368-
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
369365
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
370366
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
371367
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build !test
2+
3+
package kinesisacquisition
4+
5+
import "github.com/aws/aws-sdk-go-v2/aws"
6+
7+
func defaultCreds() aws.CredentialsProvider {
8+
return nil
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build test
2+
3+
package kinesisacquisition
4+
5+
import "github.com/aws/aws-sdk-go-v2/aws"
6+
7+
func defaultCreds() aws.CredentialsProvider {
8+
return aws.AnonymousCredentials{}
9+
}

0 commit comments

Comments
 (0)