Skip to content

Commit

Permalink
fix: update aws command with lambdas support
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharest authored Oct 3, 2024
1 parent b672ee6 commit ab33fd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/modules/aws/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from integrations.aws.organizations import get_account_id_by_name
from integrations.aws import identity_store
from integrations.slack import commands as slack_commands
from modules.aws import aws_access_requests, aws_account_health, groups, users
from modules.aws import aws_access_requests, aws_account_health, groups, users, lambdas

PREFIX = os.environ.get("PREFIX", "")
AWS_ADMIN_GROUPS = os.environ.get("AWS_ADMIN_GROUPS", "[email protected]").split(",")
Expand All @@ -33,6 +33,8 @@
\n `<operation>`: `sync`, `list`
\n `<group>`: name of the group | nom du groupe (sync only)
\n Usage: `/aws groups sync`, `/aws groups sync group-name` or/ou `/aws groups list`
\n `/aws lambdas <operation>`
\n - Manage AWS Lambda functions | Gérer les fonctions Lambda AWS
\n `/aws help | aide`
\n - Show this help text | montre le dialogue d'aide
\n `/aws health`
Expand Down Expand Up @@ -92,6 +94,8 @@ def aws_command(
users.command_handler(client, body, respond, args, logger)
case "groups":
groups.command_handler(client, body, respond, args, logger)
case "lambda" | "lambdas":
lambdas.command_handler(client, body, respond, args, logger)
case _:
respond(
f"Unknown command: `{action}`. Type `/aws help` to see a list of commands.\n"
Expand Down

0 comments on commit ab33fd7

Please sign in to comment.