From f174587291433e822741dc29fff716f45c9d6b33 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Mon, 31 Aug 2015 09:34:34 -0500 Subject: [PATCH] provider/aws: touch up on aws_spot_instance --- builtin/providers/aws/resource_aws_spot_instance_request.go | 2 +- .../providers/aws/resource_aws_spot_instance_request_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_spot_instance_request.go b/builtin/providers/aws/resource_aws_spot_instance_request.go index 81f51623e..56de8992c 100644 --- a/builtin/providers/aws/resource_aws_spot_instance_request.go +++ b/builtin/providers/aws/resource_aws_spot_instance_request.go @@ -90,7 +90,7 @@ func resourceAwsSpotInstanceRequestCreate(d *schema.ResourceData, meta interface Placement: instanceOpts.SpotPlacement, SecurityGroupIds: instanceOpts.SecurityGroupIDs, SecurityGroups: instanceOpts.SecurityGroups, - SubnetID: instanceOpts.SubnetID, + SubnetId: instanceOpts.SubnetID, UserData: instanceOpts.UserData64, }, } diff --git a/builtin/providers/aws/resource_aws_spot_instance_request_test.go b/builtin/providers/aws/resource_aws_spot_instance_request_test.go index 4f4df65bf..be2ae3956 100644 --- a/builtin/providers/aws/resource_aws_spot_instance_request_test.go +++ b/builtin/providers/aws/resource_aws_spot_instance_request_test.go @@ -181,7 +181,7 @@ func testAccCheckAWSSpotInstanceRequestAttributes( func testAccCheckAWSSpotInstanceRequestAttributesVPC( sir *ec2.SpotInstanceRequest) resource.TestCheckFunc { return func(s *terraform.State) error { - if sir.LaunchSpecification.SubnetID == nil { + if sir.LaunchSpecification.SubnetId == nil { return fmt.Errorf("SubnetID was not passed, but should have been for this instance to belong to a VPC") } return nil