AWS AWSEC2 documentation change
Summary
Updated ENA Express documentation to clarify viewing settings by instance/network interface, added concrete CLI/PowerShell command examples with parameters, and simplified output examples
Security assessment
Changes focus on usability improvements and command syntax updates without mentioning security vulnerabilities, mitigations, or security-related configurations. The modifications are documentation clarifications rather than security fixes.
Diff
diff --git a/AWSEC2/latest/UserGuide/ena-express-list-view.md b/AWSEC2/latest/UserGuide/ena-express-list-view.md index 6f45dea15..851529f95 100644 --- a//AWSEC2/latest/UserGuide/ena-express-list-view.md +++ b//AWSEC2/latest/UserGuide/ena-express-list-view.md @@ -7 +7 @@ -This section covers how to view ENA Express information from the AWS Management Console or from the AWS CLI. For more information, choose the tab that matches the method you'll use. +You can verify the ENA Express settings by instance or by network interface. To update the ENA Express settings, see [Configure ENA Express settings for your EC2 instance](./ena-express-configure.html). @@ -12,3 +12 @@ Console -This tab covers how to find information about your current ENA Express settings in the AWS Management Console. - -###### View settings from the Network interface list +###### To view ENA Express settings for a network interface @@ -27 +25 @@ This tab covers how to find information about your current ENA Express settings -###### View settings from the Instances list +###### To view ENA Express settings for an instance @@ -43 +41,4 @@ AWS CLI -This tab covers how to find information about your current ENA Express settings in the AWS CLI. +###### To get the ENA Express settings for an instance + +Use the [describe-instances](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/describe-instances.html) command. This command example returns a list of ENA Express configurations for the network interfaces attached to each of the running instances that are specified by the `--instance-ids` parameter. + @@ -45 +46,3 @@ This tab covers how to find information about your current ENA Express settings -###### Describe instances + aws ec2 describe-instances \ + --instance-ids i-1234567890abcdef0 i-0598c7d356eba48d7 \ + --query 'Reservations[*].Instances[*].[InstanceId, NetworkInterfaces[*].Attachment.EnaSrdSpecification]' @@ -47 +50 @@ This tab covers how to find information about your current ENA Express settings -For information about ENA Express configuration for specified instances, run the [describe-instances](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/describe-instances.html) command as follows. This command example returns a list of ENA Express configurations for the network interfaces attached to each of the running instances that are specified by the `--instance-ids` parameter. +The following is example output. @@ -50 +53 @@ For information about ENA Express configuration for specified instances, run the - [ec2-user ~]$ aws ec2 describe-instances --instance-ids i-1234567890abcdef0 i-0598c7d356eba48d7 --query 'Reservations[*].Instances[*].[InstanceId, NetworkInterfaces[*].Attachment.EnaSrdSpecification]'[ + [ @@ -79 +82 @@ For information about ENA Express configuration for specified instances, run the -###### Describe network interfaces +###### To get the ENA Express settings for a network interface @@ -81 +84 @@ For information about ENA Express configuration for specified instances, run the -For information about ENA Express settings for a networking interface, run the [describe-network-interfaces](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/describe-network-interfaces.html) command as follows: +Use the [describe-network-interfaces](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/describe-network-interfaces.html) command. @@ -84,3 +87,10 @@ For information about ENA Express settings for a networking interface, run the [ - [ec2-user ~]$ aws ec2 describe-network-interfaces - { - "NetworkInterfaces": [ + aws ec2 describe-network-interfaces \ + --network-interface-ids eni-1234567890abcdef0 \ + --query NetworkInterfaces[].[NetworkInterfaceId,Attachment.EnaSrdSpecification] + +The following is example output. + + + [ + [ + "eni-1234567890abcdef0", @@ -88,13 +97,0 @@ For information about ENA Express settings for a networking interface, run the [ - "Association": { - ....IPs, DNS... - }, - "Attachment": { - "AttachTime": "2022-11-17T09:04:28+00:00", - "AttachmentId": "eni-attach-0ab1c23456d78e9f0", - "DeleteOnTermination": true, - "DeviceIndex": 0, - "NetworkCardIndex": 0, - "InstanceId": "i-1234567890abcdef0", - "InstanceOwnerId": "111122223333", - "Status": "attached", - "EnaSrdSpecification": { @@ -103,2 +100 @@ For information about ENA Express settings for a networking interface, run the [ - "EnaSrdUdpEnabled": true - } + "EnaSrdUdpEnabled": false @@ -106,5 +101,0 @@ For information about ENA Express settings for a networking interface, run the [ - }, - ... - "NetworkInterfaceId": "eni-1234567890abcdef0", - "OwnerId": "111122223333", - ... @@ -113 +104 @@ For information about ENA Express settings for a networking interface, run the [ - } + ] @@ -118,3 +109 @@ PowerShell -This tab covers how to find information about your current ENA Express settings using PowerShell. - -###### Describe network interfaces +###### To get the ENA Express settings for a network interface @@ -122 +111 @@ This tab covers how to find information about your current ENA Express settings -For information on ENA Express settings for a networking interface, run the [Get-EC2NetworkInterface Cmdlet](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2NetworkInterface.html) with the Tools for PowerShell as follows: +Use the [Get-EC2NetworkInterface](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2NetworkInterface.html) cmdlet. @@ -125 +114,2 @@ For information on ENA Express settings for a networking interface, run the [Get - PS C:\> Get-EC2NetworkInterface -NetworkInterfaceId eni-0d1234e5f6a78901b | ` + Get-EC2NetworkInterface ` + -NetworkInterfaceId eni-1234567890abcdef0 | ` @@ -139,0 +130,3 @@ For information on ENA Express settings for a networking interface, run the [Get +The following is example output. + + @@ -147 +140 @@ For information on ENA Express settings for a networking interface, run the [Get - InstanceId : i-0d1234e5f6a78901b + InstanceId : i-1234567890abcdef0