Skip to content

Commit 47dedc2

Browse files
committed
Formatting changes.
1 parent b47a8ff commit 47dedc2

File tree

1 file changed

+6
-9
lines changed
  • Monitoring/ingest_nas_audit_logs_into_cloudwatch

1 file changed

+6
-9
lines changed

Monitoring/ingest_nas_audit_logs_into_cloudwatch/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,17 @@ systems that you want to ingest the audit logs from.
4646
1. Create a Lambda deployment package by:
4747
1. Downloading the `ingest_fsx_audit_logs.py` file from this repository and placing it in an empty directory.
4848
1. Rename the file to `lambda_function.py`.
49-
1. Install a couple dependencies that aren't included with AWS's base Lambda deployment by running the following command:
50-
```bash
51-
pip install --target . xmltodict requests_toolbelt
52-
```
53-
1. Zip the contents of the directory into a zip file.
54-
```bash
55-
zip -r ingest_fsx_audit_logs.zip .
56-
```
49+
1. Install a couple dependencies that aren't included with AWS's base Lambda deployment by running the following command:<br>
50+
` pip install --target . xmltodict requests_toolbelt`<br>
51+
1. Zip the contents of the directory into a zip file.<br>
52+
` zip -r ingest_fsx_audit_logs.zip .`<br>
53+
5754
2. Create the Lambda function with:
5855
1. Python 3.10, or higher, as the runtime.
5956
1. Set the permissions to the role created above.
6057
1. Under `Additional Configurations` select `Enable VPC` and select a VPC and Subnet that will have access to all the FSxN cluster management endpoints that you want to gather audit logs from.
6158
1. Click `Create Function` and on the next page, under the `Code` tab, select `Upload From -> .zip file.` Provide the .zip file created by the steps above.
62-
1. From the Configuration -> General tab set the timeout to at least 30 seconds. You will may need to increase that if it has to process a lot of audit entries and/or process a lot of FSxN file systems.
59+
1. From the `Configuration -> General` tab set the timeout to at least 30 seconds. You will may need to increase that if it has to process a lot of audit entries and/or process a lot of FSxN file systems.
6360
3. Configure the Lambda function by setting the following environment variables. For a Lambda function you do this by clicking on the `Configuration` tab and then the `Environment variables` section.
6461

6562
| Variable | Description |

0 commit comments

Comments
 (0)