Я пытаюсь получить элементы из таблицы Dynamodb в реактивном параметре Active Choices. Скрипт groovy, который я пробую, -
def command = 'aws dynamodb query \
--table-name release \
--key-condition-expression "Component = :a" \
--expression-attribute-values \'{":a": { "S": "information" } }\' \
--projection-expression \'Revision\' --output text | tail -n +2 |cut -f2'
def proc = command.execute()
proc.waitFor()
def output = proc.in.text
def exitcode= proc.exitValue()
def error = proc.err.text
if (error) {
println "Std Err: ${error}"
println "Process exit code: ${exitcode}"
return exitcode
}
return output.split()
Почему-то это не работает. Я понимаю, что groovy не позволяет, но как этого можно достичь для запросов Dynamodb?