After the DynamoDB table is created, the ARN wasn't being set

This commit is contained in:
stack72 2015-10-14 18:06:09 +01:00
parent 8d017be637
commit 6d2fee9c28
1 changed files with 4 additions and 0 deletions

View File

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