AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/eks_example_eks_CreateNodegroup_section.md

Summary

Added PowerShell V5 example for EKS node group creation with IAM role configuration

Security assessment

Shows proper node role assignment which is security-related, but doesn't fix any specific security issue. Demonstrates security best practices for worker node permissions.

Diff

diff --git a/code-library/latest/ug/eks_example_eks_CreateNodegroup_section.md b/code-library/latest/ug/eks_example_eks_CreateNodegroup_section.md
index ddbb60cd1..0b8b49366 100644
--- a//code-library/latest/ug/eks_example_eks_CreateNodegroup_section.md
+++ b//code-library/latest/ug/eks_example_eks_CreateNodegroup_section.md
@@ -251,0 +252,37 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This cmdlet creates a managed worker node group for an Amazon EKS cluster. You can only create a node group for your cluster that is equal to the current Kubernetes version for the cluster. All node groups are created with the latest AMI release version for the respective minor Kubernetes version of the cluster.**
+    
+    
+    New-EKSNodeGroup -NodeGroupName "ProdEKSNodeGroup" -AmiType "AL2_x86_64" -DiskSize 40 -ClusterName "PROD" -ScalingConfig_DesiredSize 2 -ScalingConfig_MinSize 2 -ScalingConfig_MaxSize 5 -InstanceType t3.large -NodeRole "arn:aws:iam::012345678912:role/NodeInstanceRole" -Subnet "subnet-0d1a9fff35efa7691","subnet-0a3f4928edbc224d4"
+    
+
+**Output:**
+    
+    
+    AmiType        : AL2_x86_64
+    ClusterName    : PROD
+    CreatedAt      : 12/25/2019 10:16:45 AM
+    DiskSize       : 40
+    Health         : Amazon.EKS.Model.NodegroupHealth
+    InstanceTypes  : {t3.large}
+    Labels         : {}
+    ModifiedAt     : 12/25/2019 10:16:45 AM
+    NodegroupArn   : arn:aws:eks:us-west-2:012345678912:nodegroup/PROD/ProdEKSNodeGroup/7eb79e47-82b6-04d9-e984-95110db6fa85
+    NodegroupName  : ProdEKSNodeGroup
+    NodeRole       : arn:aws:iam::012345678912:role/NodeInstanceRole
+    ReleaseVersion : 1.14.7-20190927
+    RemoteAccess   :
+    Resources      :
+    ScalingConfig  : Amazon.EKS.Model.NodegroupScalingConfig
+    Status         : CREATING
+    Subnets        : {subnet-0d1a9fff35efa7691, subnet-0a3f4928edbc224d4}
+    Tags           : {}
+    Version        : 1.14
+
+  * For API details, see [CreateNodegroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+