NetworkInterfaceAttachment

class NetworkInterfaceAttachment : KotlinCustomResource

Attach an Elastic network interface (ENI) resource with EC2 instance.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.NetworkInterfaceAttachment;
import com.pulumi.aws.ec2.NetworkInterfaceAttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new NetworkInterfaceAttachment("test", NetworkInterfaceAttachmentArgs.builder()
.instanceId(aws_instance.test().id())
.networkInterfaceId(aws_network_interface.test().id())
.deviceIndex(0)
.build());
}
}

Import

Elastic network interface (ENI) Attachments can be imported using its Attachment ID e.g.,

$ pulumi import aws:ec2/networkInterfaceAttachment:NetworkInterfaceAttachment secondary_nic eni-attach-0a33842b4ec347c4c

Properties

Link copied to clipboard
val attachmentId: Output<String>

The ENI Attachment ID.

Link copied to clipboard
val deviceIndex: Output<Int>

Network interface index (int).

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

Instance ID to attach.

Link copied to clipboard

ENI ID to attach.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the Network Interface Attachment.

Link copied to clipboard
val urn: Output<String>