Merge pull request #2531 from hashicorp/b-aws-instance-refresh

providers/aws: set AMI on read for instance [GH-1571]
This commit is contained in:
Mitchell Hashimoto 2015-06-29 10:21:30 -07:00
commit 9c9fe38fd8
1 changed files with 1 additions and 0 deletions

View File

@ -457,6 +457,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("tenancy", instance.Placement.Tenancy)
}
d.Set("ami", instance.ImageID)
d.Set("instance_type", instance.InstanceType)
d.Set("key_name", instance.KeyName)
d.Set("public_dns", instance.PublicDNSName)