dynamodb-local Update AWS config

https://github.com/hashicorp/terraform/pull/2825#issuecomment-126353610

Tks @catsby
This commit is contained in:
Pablo Cantero 2015-07-30 12:21:03 -03:00
parent 28bef7c0c7
commit 5930f22974
1 changed files with 4 additions and 3 deletions

View File

@ -95,11 +95,12 @@ func (c *Config) Client() (interface{}, error) {
if err != nil {
errs = append(errs, err)
}
awsDynamoDBConfig := &aws.Config{
Credentials: creds,
Region: c.Region,
MaxRetries: c.MaxRetries,
Endpoint: c.DynamoDBEndpoint,
Region: aws.String(c.Region),
MaxRetries: aws.Int(c.MaxRetries),
Endpoint: aws.String(c.DynamoDBEndpoint),
}
log.Println("[INFO] Initializing DynamoDB connection")