Skip to content

Commit

Permalink
expose interface id from eni
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Morgan committed Dec 3, 2016
1 parent 4c9d9ff commit 55941e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/providers/aws/resource_aws_network_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func resourceAwsNetworkInterface() *schema.Resource {
Optional: true,
},

"network_interface_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"attachment": &schema.Schema{
Type: schema.TypeSet,
Optional: true,
Expand Down Expand Up @@ -147,6 +152,7 @@ func resourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) e
d.Set("private_ips", flattenNetworkInterfacesPrivateIPAddresses(eni.PrivateIpAddresses))
d.Set("security_groups", flattenGroupIdentifiers(eni.Groups))
d.Set("source_dest_check", eni.SourceDestCheck)
d.Set("network_interface_id", d.Id())

if eni.Description != nil {
d.Set("description", eni.Description)
Expand Down

0 comments on commit 55941e9

Please sign in to comment.