From 68a0e955e145c544ca595d95ae866c599784bf52 Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Thu, 26 Apr 2018 07:37:16 -0700 Subject: [PATCH] device_index can be 0. --- aws/resource_aws_launch_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_launch_template.go b/aws/resource_aws_launch_template.go index bed22574eab..c455a160de5 100644 --- a/aws/resource_aws_launch_template.go +++ b/aws/resource_aws_launch_template.go @@ -952,7 +952,7 @@ func readNetworkInterfacesFromConfig(ni map[string]interface{}) *ec2.LaunchTempl networkInterface.Description = aws.String(v) } - if v, ok := ni["device_index"].(int); ok && v != 0 { + if v, ok := ni["device_index"].(int); ok { networkInterface.DeviceIndex = aws.Int64(int64(v)) }