Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dza89 committed Dec 12, 2023
1 parent d975ce9 commit 52985f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
)

const (
wasabiIamEndpoint = "https://iam.wasabisys.com"
)

type Config struct {
AccessKey string
SecretKey string
Expand Down Expand Up @@ -125,7 +129,7 @@ func (c *Config) Client() (interface{}, error) {
accountid: accountID,
region: c.Region,
dnsSuffix: dnsSuffix,
iamconn: iam.New(sess.Copy(&aws.Config{Endpoint: aws.String(c.Endpoints["iam"])})),
iamconn: iam.New(sess.Copy(&aws.Config{Endpoint: aws.String(wasabiIamEndpoint)})),
partition: partition,
terraformVersion: c.terraformVersion,
}
Expand Down

0 comments on commit 52985f1

Please sign in to comment.