provider/aws: Default false for VPC Classic Link
This commit is contained in:
parent
3d866f71ea
commit
57b9097015
|
@ -58,7 +58,7 @@ func resourceAwsVpc() *schema.Resource {
|
||||||
"enable_classiclink": &schema.Schema{
|
"enable_classiclink": &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Default: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
"main_route_table_id": &schema.Schema{
|
"main_route_table_id": &schema.Schema{
|
||||||
|
@ -177,7 +177,7 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
d.Set("enable_dns_hostnames", *resp.EnableDnsHostnames)
|
d.Set("enable_dns_hostnames", *resp.EnableDnsHostnames)
|
||||||
|
|
||||||
DescribeClassiclinkOpts := &ec2.DescribeVpcClassicLinkInput{
|
DescribeClassiclinkOpts := &ec2.DescribeVpcClassicLinkInput{
|
||||||
VpcIds: []*string{ &vpcid },
|
VpcIds: []*string{&vpcid},
|
||||||
}
|
}
|
||||||
respClassiclink, err := conn.DescribeVpcClassicLink(DescribeClassiclinkOpts)
|
respClassiclink, err := conn.DescribeVpcClassicLink(DescribeClassiclinkOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue