mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: touch up on aws_spot_instance
This commit is contained in:
parent
273d4fc98d
commit
f174587291
@ -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,
|
||||
},
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user