provider/aws: Correctly default Instance source_dest_check to true
This commit is contained in:
parent
7c7dc8a4cd
commit
fcd89828f9
|
@ -85,6 +85,7 @@ func resourceAwsInstance() *schema.Resource {
|
||||||
"source_dest_check": &schema.Schema{
|
"source_dest_check": &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
Default: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"user_data": &schema.Schema{
|
"user_data": &schema.Schema{
|
||||||
|
@ -641,6 +642,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
d.Set("subnet_id", instance.SubnetID)
|
d.Set("subnet_id", instance.SubnetID)
|
||||||
}
|
}
|
||||||
d.Set("ebs_optimized", instance.EBSOptimized)
|
d.Set("ebs_optimized", instance.EBSOptimized)
|
||||||
|
d.Set("source_dest_check", instance.SourceDestCheck)
|
||||||
d.Set("tags", tagsToMap(instance.Tags))
|
d.Set("tags", tagsToMap(instance.Tags))
|
||||||
|
|
||||||
// Determine whether we're referring to security groups with
|
// Determine whether we're referring to security groups with
|
||||||
|
|
|
@ -653,7 +653,6 @@ resource "aws_instance" "foo" {
|
||||||
ami = "ami-4fccb37f"
|
ami = "ami-4fccb37f"
|
||||||
instance_type = "m1.small"
|
instance_type = "m1.small"
|
||||||
subnet_id = "${aws_subnet.foo.id}"
|
subnet_id = "${aws_subnet.foo.id}"
|
||||||
source_dest_check = true
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue