| name | cis-aws-storage-4.5 |
| description | Ensure installation and configuration of Lustre Client |
| category | cis-storage-services |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","storage","fsx","lustre","client-installation","ubuntu","level-2"] |
| cis_id | 4.5 |
| cis_benchmark | CIS AWS Storage Services Benchmark v1.0.0 |
| tech_stack | ["aws","linux"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-storage-4.2","cis-aws-storage-4.4","cis-aws-storage-4.6"] |
| prerequisites | ["cis-aws-storage-4.2","cis-aws-storage-4.4"] |
| severity_boost | {} |
4.5 Ensure installation and configuration of Lustre Client (Manual)
Profile Applicability
Description
To utilize the newly created File Cache, you must install the Lustre Client on your EC2 instance.
Rationale
The Lustre Client facilitates efficient communication between the EC2 instance and the File Cache, ensuring high-performance data access and improved overall system efficiency. This setup is crucial for optimizing data processing and leveraging the benefits of the File Cache.
Impact
Without the Lustre Client installed, EC2 instances cannot mount or access the FSx File Cache, resulting in inability to leverage the high-performance caching capabilities and potential performance degradation for data-intensive workloads.
Audit Procedure
AWS Console
This is a client-side configuration that cannot be audited through the AWS Console. Use SSH to connect to EC2 instances and verify Lustre client installation.
AWS CLI & SSH
- Connect to your EC2 instance:
ssh -i "{KEY.pem}" ubuntu@{your-ec2-instance}
- Verify Lustre client installation:
dpkg -l | grep lustre
modinfo lustre
uname -r
Expected Result
The Lustre client should be properly installed with:
- Lustre client modules present in the system
- Compatible kernel version (5.15.0.1020-aws or later for Ubuntu 22.02)
- Lustre repository configured
- Client modules loaded and available
Remediation
SSH to EC2 Instance
Follow these steps to install the Lustre Client on Ubuntu 22.04:
- Launch your EC2 instance. Navigate to the folder of your secure key and ssh into the instance using this command:
ssh -i "{KEY.pem}" ubuntu@{your-ec2-instance}
-
When prompted to log in with the SSH key, enter "yes"
-
You should now be connected to your EC2 instance
-
Run the following command to download and install the public Lustre key: