Key must be a buffer
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, javascript, nodejs
Hướng nghiên cứu
Start by reproducing the node-lambda deploy flow using EC2 role credentials, then trace the failure through the AWS SDK signing paths shown in the stack trace, especially util.js, v4_credentials.js, and v4.js. Determine whether role-based credentials are expected to work and define completion as either a successful deployment or a clearly documented limitation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
+ node-lambda deploy
=> Moving files to temporary directory
=> Running npm install --production
=> Zipping deployment package
=> Zipping repo. This might take up to 30 seconds
=> Reading zip file to memory
=> Reading event source file to memory
=> Uploading zip file to AWS Lambda eu-west-1 with parameters:
{ FunctionName: 'api-production',
Code: { ZipFile: <Buffer 50 4b 03 04 14 00 08 00 08 00 48 6c fb 4a 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 2e 65 6e 76 4d 8e 4d 6f 82 40 18 84 ef fc 0c ef da 6a ad 35 ... > },
Handler: 'index.handler',
Role: 'arn:aws:iam::123456789012:role/<lambda_role>',
Runtime: 'nodejs6.10',
Description: 'api',
MemorySize: '128',
Timeout: '3',
Publish: false,
VpcConfig: { SubnetIds: [], SecurityGroupIds: [] },
Environment: { Variables: null },
DeadLetterConfig: { TargetArn: null },
TracingConfig: { Mode: null } }
Key must be a buffer
=> Retrying
{ TypeError: Key must be a buffer
at TypeError (native)
at new Hmac (crypto.js:91:16)
at Object.Hmac (crypto.js:89:12)
at Object.hmac (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/util.js:401:30)
at Object.getSigningKey (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/signers/v4_credentials.js:59:8)
at V4.signature (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/signers/v4.js:97:36)
at V4.authorization (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/signers/v4.js:92:36)
at V4.addAuthorization (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/signers/v4.js:34:12)
at /usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/event_listeners.js:215:18
at finish (/usr/lib/node_modules/node-lambda/node_modules/aws-sdk/lib/config.js:315:7) retryDelay: 91.55329953571814 }
I suspect that this is because I am not giving it an IAM account credentials, instead opting to use EC2 roles...
"If your application has AWS credentials baked into it, you're "doing it wrong""
- Ngôn ngữ chính
- JavaScript
- Star
- 1.4k
- Fork
- 185
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của motdotla/node-lambda
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
motdotla/node-lambda#840 · 1 bình luận ·
-
Migration to AWS SDK v3 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
motdotla/node-lambda#641 · 6 bình luận · 2 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
motdotla/node-lambda#618 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
motdotla/node-lambda#544 · 1 reaction ·
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
motdotla/node-lambda#537 · 2 bình luận · 1 reaction ·
Tất cả issue của motdotla/node-lambda
Issue tương tự
-
curation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
amponce/archive-movie-browser#186 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100