Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ add []aws.ec2.networkinterface to aws.ec2.instance #4113

Merged
merged 6 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ mfs
mgroup
Mpim
natgateway
networkinterface
nodepool
nullgroup
nullstring
Expand Down
34 changes: 34 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,8 @@ private aws.vpc.natgateway {
vpc() aws.vpc
// List of addresses associated with the NAT gateway
addresses []aws.vpc.natgateway.address
// Subnet for the NAT gateway
subnet() aws.vpc.subnet
}

// Amazon VPC NAT gateway address
Expand Down Expand Up @@ -2756,6 +2758,38 @@ private aws.ec2.instance @defaults("instanceId region state instanceType archite
architecture string
// The TPM version supported. NitroTPM is enabled if this value is `2.0`
tpmSupport string
// List of network interfaces for the instance
networkInterfaces() []aws.ec2.networkinterface
}

// AWS EC2 network interface
private aws.ec2.networkinterface @defaults("id macAddress description") {
// The ID of the network interface
id string
// The description of the network interface
description string
// The subnet of the network interface
subnet() aws.vpc.subnet
// The VPC of the network interface
vpc() aws.vpc
// The status of the network interface. If the network interface is not attached to an instance, the status is available; if a network interface is attached to an instance the status is in-use
status string
// Indicates whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.
sourceDestCheck bool
// Indicates whether the network interface is being managed by an AWS service (for example, AWS Management Console, Auto Scaling, and so on)
requesterManaged bool
// Tags set on the interface
tags map[string]string
// The availability zone of the network interface
availabilityZone string
// Security groups associated with the network interface
securityGroups() []aws.ec2.securitygroup
// Indicates whether this is an IPv6 only network interface
ipv6Native bool
// The MAC address of the network interface
macAddress string
// The private DNS name of the network interface (IPv4)
privateDnsName string
}

// Amazon EC2 key pair
Expand Down
Loading
Loading