我以多种方式尝试了这一点:
aws cloudformation deploy --stack-name agent-prod --template-file prod-agent.yaml --region eu-central-1 --parameter-overrides ConfigFile="$(cat config.yaml)"
和
aws cloudformation deploy --stack-name agent-prod --template-file prod-agent.yaml --region eu-central-1 --parameter-overrides ConfigFile=fileb://config.yaml
但是没有用。有什么好方法并且众所周知吗?
答案 0 :(得分:0)
您目前无法以YAML格式传递参数。这是commonly requested feature。
一种选择是使用parameters
参数以JSON格式传递参数:
--parameters params.json
params.json:
[
{
"ParameterKey": "Foo",
"ParameterValue": "Bar"
}
]