Skip to content

Commit

Permalink
Merge pull request #6284 from saravanan30erd/issue-6096
Browse files Browse the repository at this point in the history
issue #6096 Typo in data_source_aws_network_interface
  • Loading branch information
bflad authored Oct 30, 2018
2 parents 95e71ef + be3cb3d commit b2bedcb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aws/data_source_aws_network_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func dataSourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{})
d.Set("mac_address", eni.MacAddress)
d.Set("owner_id", eni.OwnerId)
d.Set("private_dns_name", eni.PrivateDnsName)
d.Set("private_id", eni.PrivateIpAddress)
d.Set("private_ip", eni.PrivateIpAddress)
d.Set("private_ips", flattenNetworkInterfacesPrivateIPAddresses(eni.PrivateIpAddresses))
d.Set("requester_id", eni.RequesterId)
d.Set("subnet_id", eni.SubnetId)
Expand Down
7 changes: 7 additions & 0 deletions aws/data_source_aws_network_interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ func TestAccDataSourceAwsNetworkInterface_basic(t *testing.T) {
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.aws_network_interface.test", "private_ips.#", "1"),
resource.TestCheckResourceAttr("data.aws_network_interface.test", "security_groups.#", "1"),
resource.TestCheckResourceAttrPair("data.aws_network_interface.test", "private_ip", "aws_network_interface.test", "private_ip"),
resource.TestCheckResourceAttrSet("data.aws_network_interface.test", "availability_zone"),
resource.TestCheckResourceAttrPair("data.aws_network_interface.test", "description", "aws_network_interface.test", "description"),
resource.TestCheckResourceAttrSet("data.aws_network_interface.test", "interface_type"),
resource.TestCheckResourceAttrPair("data.aws_network_interface.test", "private_dns_name", "aws_network_interface.test", "private_dns_name"),
resource.TestCheckResourceAttrPair("data.aws_network_interface.test", "subnet_id", "aws_network_interface.test", "subnet_id"),
resource.TestCheckResourceAttrSet("data.aws_network_interface.test", "vpc_id"),
),
},
},
Expand Down
8 changes: 8 additions & 0 deletions website/docs/d/network_interface.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ Additionally, the following attributes are exported:

* `association` - The association information for an Elastic IP address (IPv4) associated with the network interface. See supported fields below.
* `availability_zone` - The Availability Zone.
* `description` - Description of the network interface.
* `interface_type` - The type of interface.
* `ipv6_addresses` - List of IPv6 addresses to assign to the ENI.
* `mac_address` - The MAC address.
* `owner_id` - The AWS account ID of the owner of the network interface.
* `private_dns_name` - The private DNS name.
* `private_ip` - The private IPv4 address of the network interface within the subnet.
* `private_ips` - The private IPv4 addresses associated with the network interface.
* `requester_id` - The ID of the entity that launched the instance on your behalf.
* `security_groups` - The list of security groups for the network interface.
* `subnet_id` - The ID of the subnet.
* `tags` - Any tags assigned to the network interface.
* `vpc_id` - The ID of the VPC.

### `association`

Expand Down

0 comments on commit b2bedcb

Please sign in to comment.