diff --git a/pkg/driver/node.go b/pkg/driver/node.go index 921eb8efc4..768dda6ba5 100644 --- a/pkg/driver/node.go +++ b/pkg/driver/node.go @@ -44,6 +44,10 @@ const ( // default file system type to be used when it is not provided defaultFsType = FSTypeExt4 + + // maxVolumesPerNode is the maximum number of volumes that an AWS instance can have attached. + // More info at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html + maxVolumesPerNode = 39 ) var ( @@ -316,6 +320,7 @@ func (d *nodeService) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoReque return &csi.NodeGetInfoResponse{ NodeId: m.GetInstanceID(), + MaxVolumesPerNode: maxVolumesPerNode, AccessibleTopology: topology, }, nil }