Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

ListBucket report 400 #1180

Closed
ywyt738 opened this issue Jul 7, 2022 · 0 comments · Fixed by #1216
Closed

ListBucket report 400 #1180

ywyt738 opened this issue Jul 7, 2022 · 0 comments · Fixed by #1216
Assignees
Labels
bug Something isn't working

Comments

@ywyt738
Copy link

ywyt738 commented Jul 7, 2022

Describe the bug

error log:

 23351  {"level":"error","instance_id":"4fc2b50d-1de7-452b-b4ae-a239fc161471","@module":"aws","Region":"cn-north-1","account_id":"xxxxxxxxxxxx","client_id":"aws_s3_buckets:xxxxxxxxxxxx:cn-north-1","error":"failed to resolve table \"aws_s3_buckets\": error at github.com/cloudquery/cq-provider-aws/resources/services/s3.fetchS3Buckets[buckets.go:474] operation error S3: ListBuckets, https response error StatusCode: 400, RequestID: WRYJX4Q3DHWDP2KS, HostID: VzOKHpdUCuzkJrl1sQgNlYnglW5ajlKMCsvPGWkVYQGmPYTTD0YP9D4bWq4VJMclTydn3yvWxyk=, api error InvalidToken: The provided token is malformed or otherwise invalid.","table":"aws_s3_buckets","timestamp":"2022-07-07T15:23:53.736+0800","time":"2022-07-07T15:23:54+08:00","message":"received resolve resources error"}

I find in resources/services/s3/buckets.go on 471 line. It's hardcode like below:

options.Region = "us-east-1"

Expected Behavior

no error.
Successfully list bucket.

Steps to Reproduce

cloudquery fetch

Possible Solution

Don't hardcode.

Provider and CloudQuery version

0.31.5, v0.12.25

Additional Context

No response

@ywyt738 ywyt738 added the bug Something isn't working label Jul 7, 2022
@bbernays bbernays self-assigned this Jul 7, 2022
@bbernays bbernays linked a pull request Jul 12, 2022 that will close this issue
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants