Skip to content

Commit 5d2a2e9

Browse files
committed
fix: Modify Amazon Q rule for Lambda Layer
1 parent b04244f commit 5d2a2e9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.amazonq/rules/layer-python-rule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def process_event(event: dict, set_tag: bool = False) -> dict:
2424

2525
return result
2626
```
27+
* If you created a new file, add file name to `__all__` in `lambda/python/cloudtrail_watcher/services/__init__.py` as a new module.
2728

2829
* Get the name of the event from `eventName` in the CloudTrail event. (ID: EVENT_NAME)
2930
* Create a function in SERVICE_FILE. (ID: PROCESS_EVENT_FUNCTION)

layer/python/cloudtrail_watcher/services/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
'airflow',
1616
'dynamodb',
1717
'elasticloadbalancing',
18-
'cloudfront'
18+
'cloudfront',
19+
'sqs'
1920
]

0 commit comments

Comments
 (0)