Skip to content

Commit

Permalink
fix: remove timeout: 30 since the default value is already 30
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 27, 2020
1 parent ee4e18c commit 66a24fa
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 35 deletions.
9 changes: 0 additions & 9 deletions api/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ module.exports = () => ({
code: "./apolloGateway/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: { ...apolloServiceEnv, ...apolloGatewayServices }
}
}
Expand All @@ -70,7 +69,6 @@ module.exports = () => ({
concurrencyLimit: 50,
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
MONGODB_SERVER: process.env.MONGODB_SERVER,
MONGODB_NAME: process.env.MONGODB_NAME
Expand Down Expand Up @@ -129,7 +127,6 @@ module.exports = () => ({
code: "./security/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -148,7 +145,6 @@ module.exports = () => ({
code: "./security/validateAccessToken/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down Expand Up @@ -194,7 +190,6 @@ module.exports = () => ({
code: "./files/transform/build",
handler: "handler.handler",
memory: 1600,
timeout: 30,
layers: [getLayerArn("webiny-v4-sharp", process.env.AWS_REGION)],
env: {
S3_BUCKET: process.env.S3_BUCKET
Expand Down Expand Up @@ -298,7 +293,6 @@ module.exports = () => ({
code: "./i18n/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -317,7 +311,6 @@ module.exports = () => ({
code: "./i18n/locales/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down Expand Up @@ -355,7 +348,6 @@ module.exports = () => ({
code: "./pageBuilder/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
...apolloServiceEnv,
INSTALLATION_S3_BUCKET: process.env.S3_BUCKET,
Expand All @@ -379,7 +371,6 @@ module.exports = () => ({
code: "./formBuilder/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
...apolloServiceEnv,
I18N_LOCALES_FUNCTION: "${i18nLocales.name}"
Expand Down
5 changes: 1 addition & 4 deletions apps/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = ({ cli }) => {
concurrencyLimit: 50,
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
MONGODB_SERVER: process.env.MONGODB_SERVER,
MONGODB_NAME: process.env.MONGODB_NAME
Expand All @@ -48,7 +47,6 @@ module.exports = ({ cli }) => {
description: "Webiny Site",
region: process.env.AWS_REGION,
memory: 128,
timeout: 30,
code: "./site/build",
handler: "handler.handler",
env: {
Expand Down Expand Up @@ -89,8 +87,7 @@ module.exports = ({ cli }) => {
description: "Webiny Admin",
code: "./admin/build",
handler: "handler.handler",
memory: 128,
timeout: 30
memory: 128
}
}
},
Expand Down
7 changes: 0 additions & 7 deletions packages/cwp-template-cms/template/api/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module.exports = () => ({
code: "./apolloGateway/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: { ...apolloServiceEnv, ...apolloGatewayServices }
}
}
Expand All @@ -68,7 +67,6 @@ module.exports = () => ({
concurrencyLimit: 50,
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
MONGODB_SERVER: process.env.MONGODB_SERVER,
MONGODB_NAME: process.env.MONGODB_NAME
Expand Down Expand Up @@ -127,7 +125,6 @@ module.exports = () => ({
code: "./security/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -146,7 +143,6 @@ module.exports = () => ({
code: "./security/validateAccessToken/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down Expand Up @@ -192,7 +188,6 @@ module.exports = () => ({
code: "./files/transform/build",
handler: "handler.handler",
memory: 1600,
timeout: 30,
layers: [getLayerArn("webiny-v4-sharp", process.env.AWS_REGION)],
env: {
S3_BUCKET: process.env.S3_BUCKET
Expand Down Expand Up @@ -298,7 +293,6 @@ module.exports = () => ({
code: "./i18n/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -317,7 +311,6 @@ module.exports = () => ({
code: "./i18n/locales/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down
3 changes: 1 addition & 2 deletions packages/cwp-template-cms/template/apps/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ module.exports = ({ cli }) => {
description: "Webiny Admin",
code: "./admin/build",
handler: "handler.handler",
memory: 128,
timeout: 30
memory: 128
}
}
},
Expand Down
9 changes: 0 additions & 9 deletions packages/cwp-template-full/template/api/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ module.exports = () => ({
code: "./apolloGateway/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: { ...apolloServiceEnv, ...apolloGatewayServices }
}
}
Expand All @@ -70,7 +69,6 @@ module.exports = () => ({
concurrencyLimit: 50,
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
MONGODB_SERVER: process.env.MONGODB_SERVER,
MONGODB_NAME: process.env.MONGODB_NAME
Expand Down Expand Up @@ -129,7 +127,6 @@ module.exports = () => ({
code: "./security/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -148,7 +145,6 @@ module.exports = () => ({
code: "./security/validateAccessToken/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down Expand Up @@ -194,7 +190,6 @@ module.exports = () => ({
code: "./files/transform/build",
handler: "handler.handler",
memory: 1600,
timeout: 30,
layers: [getLayerArn("webiny-v4-sharp", process.env.AWS_REGION)],
env: {
S3_BUCKET: process.env.S3_BUCKET
Expand Down Expand Up @@ -300,7 +295,6 @@ module.exports = () => ({
code: "./i18n/graphql/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: apolloServiceEnv
}
}
Expand All @@ -319,7 +313,6 @@ module.exports = () => ({
code: "./i18n/locales/build",
handler: "handler.handler",
memory: 256,
timeout: 30,
env: {
DB_PROXY_FUNCTION: "${databaseProxy.arn}",
DEBUG: process.env.DEBUG
Expand Down Expand Up @@ -357,7 +350,6 @@ module.exports = () => ({
code: "./pageBuilder/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
...apolloServiceEnv,
INSTALLATION_S3_BUCKET: process.env.S3_BUCKET,
Expand All @@ -381,7 +373,6 @@ module.exports = () => ({
code: "./formBuilder/build",
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
...apolloServiceEnv,
I18N_LOCALES_FUNCTION: "${i18nLocales.name}"
Expand Down
5 changes: 1 addition & 4 deletions packages/cwp-template-full/template/apps/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = ({ cli }) => {
concurrencyLimit: 50,
handler: "handler.handler",
memory: 512,
timeout: 30,
env: {
MONGODB_SERVER: process.env.MONGODB_SERVER,
MONGODB_NAME: process.env.MONGODB_NAME
Expand All @@ -48,7 +47,6 @@ module.exports = ({ cli }) => {
description: "Webiny Site",
region: process.env.AWS_REGION,
memory: 128,
timeout: 30,
code: "./site/build",
handler: "handler.handler",
env: {
Expand Down Expand Up @@ -89,8 +87,7 @@ module.exports = ({ cli }) => {
description: "Webiny Admin",
code: "./admin/build",
handler: "handler.handler",
memory: 128,
timeout: 30
memory: 128
}
}
},
Expand Down

0 comments on commit 66a24fa

Please sign in to comment.