Expand description
Attach an Elastic network interface (ENI) resource with EC2 instance.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let test = network_interface_attachment::create(
"test",
NetworkInterfaceAttachmentArgs::builder()
.device_index(0)
.instance_id("${testAwsInstance.id}")
.network_interface_id("${testAwsNetworkInterface.id}")
.build_struct(),
);
}
§Import
Using pulumi import
, import Elastic network interface (ENI) Attachments using its Attachment ID. For example:
$ pulumi import aws:ec2/networkInterfaceAttachment:NetworkInterfaceAttachment secondary_nic eni-attach-0a33842b4ec347c4c
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments