From f6b9e7c1a6bc1b6f0b7bc59dd7506f445bcc961b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 26 Jun 2015 17:12:20 -0700 Subject: [PATCH] providers/aws: set AMI on read for instance [GH-1571] --- builtin/providers/aws/resource_aws_instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index bc39d6e26f..9a4306acba 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -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)