Skip to content

Commit

Permalink
✨ add []aws.ec2.networkinterface to aws.ec2.instance (#4113)
Browse files Browse the repository at this point in the history
* ✨ add []aws.ec2.networkinterface to aws.ec2.instance

* 🧹 add networkinterface to spelling expect

* 🧹 fix min mondoo version

Co-authored-by: Tim Smith <[email protected]>

* Add defaults for the network interfaces

Signed-off-by: Tim Smith <[email protected]>

* Add descriptions for documentation

Signed-off-by: Tim Smith <[email protected]>

* Add the missing description for the resource

Signed-off-by: Tim Smith <[email protected]>

---------

Signed-off-by: Tim Smith <[email protected]>
Co-authored-by: Tim Smith <[email protected]>
  • Loading branch information
vjeffrey and tas50 authored May 29, 2024
1 parent 380a4da commit 69db038
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 18 deletions.
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 @@ -2433,6 +2433,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 @@ -2796,6 +2798,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

0 comments on commit 69db038

Please sign in to comment.