CustomizationsConfig / AppConfigItem | Ec2FirewallConfig / LaunchTemplateConfig / NetworkInterfaceItemConfig

The parameters for a network interface.

See

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.html

Example

networkInterfaces:
- deleteOnTermination: true
description: secondary network interface
deviceIndex: 1
groups:
# security group is from network-config.yaml under the same vpc
- SharedServices-Main-sg
# subnet is from network-config.yaml under the same vpc
subnetId: SharedServices-App-A

Hierarchy

  • NetworkInterfaceItemConfig

Implements

Constructors

Properties

associateCarrierIpAddress: undefined | boolean = undefined

Associates a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface.

associateElasticIp: undefined | boolean = undefined

Associate an elastic IP with the interface

Remarks

This property only applies to EC2-based firewall instances.

associatePublicIpAddress: undefined | boolean = undefined

Associates a public IPv4 address with eth0 for a new network interface.

deleteOnTermination: undefined | boolean = undefined

Indicates whether the network interface is deleted when the instance is terminated.

description: undefined | string = undefined

A description for the network interface.

deviceIndex: undefined | number = undefined

The device index for the network interface attachment.

groups: undefined | string[] = undefined

Security group names to associate with this network interface.

See

SecurityGroupConfig

interfaceType: undefined | string = undefined

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. If you are not creating an EFA, specify interface or omit this parameter. Valid values: interface | efa

networkCardIndex: undefined | number = undefined

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

networkInterfaceId: undefined | string = undefined

The ID of the network interface.

privateIpAddress: undefined | string = undefined

The primary private IPv4 address of the network interface.

privateIpAddresses: undefined | PrivateIpAddressConfig[] = undefined

One or more private IPv4 addresses.

secondaryPrivateIpAddressCount: undefined | number = undefined

The number of secondary private IPv4 addresses to assign to a network interface.

sourceDestCheck: undefined | boolean = undefined

If the value is true , source/destination checks are enabled; otherwise, they are disabled. The default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.

Remarks

This property only applies to EC2-based firewall instances.

subnetId: undefined | string = undefined

Valid subnet name from network-config.yaml under the same vpc

Generated using TypeDoc