We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7213658 commit 8338508Copy full SHA for 8338508
src/baas/scf/index.js
@@ -76,12 +76,10 @@ class Scf {
76
functionConfigure['EipConfig.EipFixed'] = 'TRUE'
77
}
78
if (inputs.layers) {
79
- let index = 0
80
- for (const item in inputs.layers) {
81
- functionConfigure[`Layers.${index}.LayerName`] = item
82
- functionConfigure[`Layers.${index}.LayerVersion`] = inputs.layers[item]
83
- index++
84
- }
+ inputs.layers.forEach((item, index) => {
+ functionConfigure[`Layers.${index}.LayerName`] = item.name
+ functionConfigure[`Layers.${index}.LayerVersion`] = item.version
+ })
85
86
if (inputs.deadLetter) {
87
if (inputs.deadLetter.type) {
0 commit comments