Skip to content

Commit

Permalink
Remove network_interface_id
Browse files Browse the repository at this point in the history
Finally remove `network_interface_id` in favor of
`primary_network_interface_id`.
  • Loading branch information
grubernaut committed Jul 20, 2017
1 parent 3aa584e commit 87efd63
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions aws/resource_aws_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ func resourceAwsInstance() *schema.Resource {
Computed: true,
},

// TODO: Deprecate me v0.10.0
"network_interface_id": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Please use `primary_network_interface_id` instead",
Type: schema.TypeString,
Computed: true,
Removed: "Use `primary_network_interface_id` instead",
},

"primary_network_interface_id": {
Expand Down Expand Up @@ -646,7 +645,6 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("subnet_id", primaryNetworkInterface.SubnetId)
}
if primaryNetworkInterface.NetworkInterfaceId != nil {
d.Set("network_interface_id", primaryNetworkInterface.NetworkInterfaceId) // TODO: Deprecate me v0.10.0
d.Set("primary_network_interface_id", primaryNetworkInterface.NetworkInterfaceId)
}
if primaryNetworkInterface.Ipv6Addresses != nil {
Expand All @@ -664,7 +662,6 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {

} else {
d.Set("subnet_id", instance.SubnetId)
d.Set("network_interface_id", "") // TODO: Deprecate me v0.10.0
d.Set("primary_network_interface_id", "")
}

Expand Down

0 comments on commit 87efd63

Please sign in to comment.