diff --git a/src/plugin/impl/tf-apply-task-plugin.ts b/src/plugin/impl/tf-apply-task-plugin.ts index b1f2a111..4037f8b1 100644 --- a/src/plugin/impl/tf-apply-task-plugin.ts +++ b/src/plugin/impl/tf-apply-task-plugin.ts @@ -182,7 +182,13 @@ export class TfBuildTaskPlugin implements IBuildTaskPlugin): string { if (!parameters) { return ''; } const entries = Object.entries(parameters); - return entries.reduce((prev, curr) => prev + ` -var "${curr[0]}=${curr[1]}"`, ''); + + return entries.reduce((prev, [key, value]) => { + if (Array.isArray(value)) { + value = JSON.stringify(value); + } + return prev + ` -var '${key}=${value}'`; + }, ''); } static GetBackendConfigAsArgument(backendConfig: Record): string {