dynamodb-local Update AWS config
https://github.com/hashicorp/terraform/pull/2825#issuecomment-126353610 Tks @catsby
This commit is contained in:
parent
28bef7c0c7
commit
5930f22974
|
@ -95,11 +95,12 @@ func (c *Config) Client() (interface{}, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
awsDynamoDBConfig := &aws.Config{
|
awsDynamoDBConfig := &aws.Config{
|
||||||
Credentials: creds,
|
Credentials: creds,
|
||||||
Region: c.Region,
|
Region: aws.String(c.Region),
|
||||||
MaxRetries: c.MaxRetries,
|
MaxRetries: aws.Int(c.MaxRetries),
|
||||||
Endpoint: c.DynamoDBEndpoint,
|
Endpoint: aws.String(c.DynamoDBEndpoint),
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("[INFO] Initializing DynamoDB connection")
|
log.Println("[INFO] Initializing DynamoDB connection")
|
||||||
|
|
Loading…
Reference in New Issue