-
Notifications
You must be signed in to change notification settings - Fork 777
feat(lambda): add Lambda remote invoke multi-tenancy support #8541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
0ffbdb7 to
38379fc
Compare
| runtimeSupportsRemoteDebug?: boolean | ||
| remoteDebugLayer?: string | undefined | ||
| isLambdaRemote?: boolean | ||
| hasTenancyConfig?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LambdaFunctionNode should have functionConfig which covers this info already
|
|
||
| if (remoteDebugEnabled) { | ||
| funcResponse = await this.clientDebug.invoke(this.data.FunctionArn, input, qualifier) | ||
| funcResponse = await this.clientDebug.invoke(this.data.FunctionArn, input, qualifier, tenantId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
help to add tail log param here to avoid potential issue in the future.
| funcResponse = await this.clientDebug.invoke(this.data.FunctionArn, input, qualifier, tenantId) | |
| funcResponse = await this.clientDebug.invoke(this.data.FunctionArn, input, qualifier, tenantId, 'Tail') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as there are more and more field in this invoke, potentially we can refactor it into
await this.clientDebug.invoke(params)
| const sdkClient = await this.createSdkClient() | ||
|
|
||
| const response = await sdkClient.send( | ||
| new InvokeCommand({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we throw error when user invoke multitenant func with undefined tenantId?
|
KHÔNG BUILD. Mục tiêu duy nhất: RÀ SOÁT – BÁO CÁO HIỆN TRẠNG PROJECT. Hãy trả lời CHỈ DƯỚI DẠNG BÁO CÁO KỸ THUẬT, theo đúng cấu trúc dưới đây. ==============================
|
Problem
This is to support the Lambda multi-tenancy feature in toolkit.
Solution
Add conditional Tenant ID field to Remote Invoke panel for multi-tenant Lambda functions. The field appears when function has TenancyConfig and passes the value to AWS Lambda Invoke API.
feature/xbranches will not be squash-merged at release time.