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 { 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")