Skip to content

Commit 83fdf3a

Browse files
committed
fix limit issue
1 parent 0380ce3 commit 83fdf3a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

samples/aliyun-poc-table.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ tags:
1212

1313
tables:
1414
insight_poc_table:
15-
collection: t01wdidewc0h
15+
collection: insight-poc-collection
16+
description: Insight POC Table for testing purposes
1617
name: insightPocTable
1718
type: TABLE_STORE_H
1819
network:

src/common/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const CODE_ZIP_SIZE_LIMIT = 15 * 1000 * 1000;
1+
export const CODE_ZIP_SIZE_LIMIT = 300 * 1000; // 300 KB ROS TemplateBody size limit 512 KB
22
export const OSS_DEPLOYMENT_TIMEOUT = 3000; // in seconds
33
export const SI_BOOTSTRAP_FC_PREFIX = 'si-bootstrap-api';
44
export const SI_BOOTSTRAP_BUCKET_PREFIX = 'si-bootstrap-artifacts';

src/stack/rosStack/bootstrap.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const getBootstrapTemplate = async (context: Context) => {
3838
Description: 'ServerlessInsight Bootstrap API',
3939
Handler: 'index.handler',
4040
Runtime: 'nodejs20',
41-
Layers: ['acs:fc:cn-hangzhou:1990893136649406:layers/si-bootstrap-sdk/versions/18'],
41+
Layers: [
42+
`acs:fc:${context.region}:${context.accountId}:layers/si-bootstrap-sdk/versions/18`,
43+
],
4244
Code: {
4345
SourceCode: `
4446
const { bootstrapHandler } = require('@geek-fun/si-bootstrap-sdk');

0 commit comments

Comments
 (0)