providers/aws: set AMI on read for instance [GH-1571]

This commit is contained in:
Mitchell Hashimoto 2015-06-26 17:12:20 -07:00
parent e5a9cee5bb
commit f6b9e7c1a6

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)