Closed ywyt738 closed 2 years ago
./client/client.go
func getAccountId(ctx context.Context, awsCfg aws.Config) (*sts.GetCallerIdentityOutput, error) { svc := sts.NewFromConfig(awsCfg) return svc.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{}, func(o *sts.Options) { o.Region = "aws-global" }) }
The o.Region should be cn-north-1 or cn-northwest-1
o.Region
cn-north-1
cn-northwest-1
sts success
aws configure resions is ["cn-north-1"]
["cn-north-1"]
o.Region can't be hardcode in func getAccountId.
0.23.4
No response
@ywyt738 Thank you for helping us out by opening these issues for bugs you find as we have no ability to use the aws-cn partition
aws-cn
Describe the bug
./client/client.go
The
o.Region
should becn-north-1
orcn-northwest-1
Expected Behavior
sts success
Steps to Reproduce
aws configure resions is
["cn-north-1"]
Possible Solution
./client/client.go
o.Region can't be hardcode in func getAccountId.
Provider and CloudQuery version
0.23.4
Additional Context
No response