From 987ec967ea0e2b1ecfccf5b26edcdeae3f7e4e6c Mon Sep 17 00:00:00 2001 From: David Radcliffe Date: Wed, 2 Sep 2015 14:04:45 -0400 Subject: [PATCH] read source_dest_check and save to state --- builtin/providers/aws/resource_aws_instance.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index 9307c13673ce..814ee08a0db9 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -475,6 +475,9 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error { d.Set("subnet_id", instance.SubnetId) } d.Set("ebs_optimized", instance.EbsOptimized) + if instance.SubnetId != nil && *instance.SubnetId != "" { + d.Set("source_dest_check", instance.SourceDestCheck) + } if instance.Monitoring != nil && instance.Monitoring.State != nil { monitoringState := *instance.Monitoring.State