Merge pull request #3500 from stack72/aws-dynamodb-table-arn

provider/aws: DynamoDB Table ARN
This commit is contained in:
Clint 2015-10-14 16:25:49 -05:00
commit 6eadfcae21
1 changed files with 5 additions and 1 deletions

View File

@ -287,7 +287,11 @@ func resourceAwsDynamoDbTableCreate(d *schema.ResourceData, meta interface{}) er
} else { } else {
// No error, set ID and return // No error, set ID and return
d.SetId(*output.TableDescription.TableName) d.SetId(*output.TableDescription.TableName)
return nil if err := d.Set("arn", *output.TableDescription.TableArn); err != nil {
return err
}
return resourceAwsDynamoDbTableRead(d, meta)
} }
} }