Skip to content

Added Lambda functionality#36

Merged
Vortex1806 merged 3 commits into
mainfrom
feature/lambda
Oct 27, 2025
Merged

Added Lambda functionality#36
Vortex1806 merged 3 commits into
mainfrom
feature/lambda

Conversation

@Vortex1806

Copy link
Copy Markdown
Owner

fixes #22

Key Features:

Creates a new AWS Lambda function from a provided JavaScript code string.

Handles in-memory zipping of the code string into the required ZipFile buffer using adm-zip.

Includes an internal _getOrCreateRole helper to find an existing Lambda execution role or create a new one (boto3js-lambda-role) with the AWSLambdaBasicExecutionRole policy.

Includes a 5-second delay after role creation to prevent IAM propagation race conditions.

Uses the waitUntilFunctionActive waiter to ensure the script only proceeds after the Lambda function's state is Active, preventing Pending state errors on subsequent calls.

Added functions
Add invoke method
Add update method with waiter
Add delete and listFunctions methods

@Vortex1806 Vortex1806 self-assigned this Oct 27, 2025
@Vortex1806 Vortex1806 added the enhancement New feature or request label Oct 27, 2025
@Vortex1806 Vortex1806 merged commit aa3e3dd into main Oct 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add feature - Lambda (invoke + deployment helpers)

1 participant