Skip to content

Commit 3430e45

Browse files
fix wrong AppSpecConfig
1 parent 1cb75b3 commit 3430e45

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ const deployApplication = async (
4545
alias: LAMBDA_ALIAS
4646
})
4747

48-
const resources = lambdas.reduce(
49-
(acc, lambda) => {
50-
acc[lambda.name] = fromLambdaFunctionToResource(lambda)
51-
return acc
52-
},
53-
{} as Record<string, Resource>
54-
)
48+
const resources = lambdas.map(lambda => {
49+
return {
50+
[lambda.name]: fromLambdaFunctionToResource(lambda)
51+
}
52+
})
5553

5654
const input: DeployInput = {
5755
applicationName: data.applicationName,

0 commit comments

Comments
 (0)