provider/aws: aws_dynamodb_table Add support for TimeToLive. Fix errcheck

This commit is contained in:
Rhys Laval 2017-04-30 23:34:19 +01:00
parent 27d3d2a871
commit 8230a5ded8
1 changed files with 4 additions and 1 deletions

View File

@ -346,7 +346,10 @@ func resourceAwsDynamoDbTableCreate(d *schema.ResourceData, meta interface{}) er
}
// Wait, till table is active before imitating any TimeToLive changes
waitForTableToBeActive(d.Id(), meta)
if err := waitForTableToBeActive(d.Id(), meta); err != nil {
log.Printf("[DEBUG] Error waiting for table to be active: %s", err)
return err
}
log.Printf("[DEBUG] Setting DynamoDB TimeToLive on arn: %s", tableArn)
if timeToLiveOk {