AWS Amazon EC2 Network Interface

This page shows how to write Terraform and CloudFormation for Amazon EC2 Network Interface and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_network_interface)

Provides an Elastic network interface (ENI) resource.

Parameters

Example Usage (from GitHub)

github-icontappoflw/tappo1
resource "aws_network_interface" "eni-07903ed53602539c4" {
    subnet_id         = "subnet-954376f3"
    private_ips       = ["172.31.1.180"]
    security_groups   = ["sg-0683a33325f2291ab"]
    source_dest_check = true
    attachment {
github-iconmdigbazova/terraforming-4ha-live-all-resources
resource "aws_network_interface" "eni-dev-petrol-eu-central-1c-erp-ecs" { //  //06024d33c1dcb2d85
    // "aws_subnet" "subnet-dev-petrol-eu-central-1c"
    subnet_id         = aws_subnet.subnet-dev-petrol-eu-central-1c.id //"subnet-071ac2d8a7a790495"
    private_ips       = ["172.31.4.66"]
    security_groups   = [aws_security_group.sg-dt-srv-erp-petrol-dev-ecs.id] // ["sg-05c9a73a6a164d7f7"]
    source_dest_check = true
github-iconzeenmc/terraform
resource "aws_network_interface" "NginX-public" {
  subnet_id       = aws_subnet.Brokenbyte-outside.id
  #private_ips     = ["192.168.100.10"]
  security_groups = [aws_security_group.allow_traffic.id]
}

github-iconjnbutters/auto201
resource "aws_network_interface" "mgmt" {
  subnet_id       = module.vpc.public_subnets[0]
  private_ips     = ["10.0.1.10"]
  security_groups = [aws_security_group.mgmt.id]
}

github-iconstephen-harris/terraform-aws-locust
resource "aws_network_interface" "master_public_network_interface" {
  subnet_id       = var.public_subnet_id
  security_groups = [aws_security_group.nodes.id]
}

resource "aws_network_interface" "worker_public_network_interface" {

CloudFormation Example (AWS::EC2::NetworkInterface)

Describes a network interface in an Amazon EC2 instance for AWS CloudFormation.

Parameters

Frequently asked questions

What is AWS Amazon EC2 Network Interface?

AWS Amazon EC2 Network Interface is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon EC2 Network Interface?

For Terraform, the tappoflw/tappo1, mdigbazova/terraforming-4ha-live-all-resources and zeenmc/terraform source code examples are useful. See the Terraform Example section for further details.