How to pass yamel file content to cloud formation nested stack?

故事扮演 提交于 2020-01-06 18:42:18

问题


I tried this in many ways:

 aws cloudformation deploy --stack-name agent-prod --template-file prod-agent.yaml --region eu-central-1 --parameter-overrides ConfigFile="$(cat config.yaml)"

and

 aws cloudformation deploy --stack-name agent-prod --template-file prod-agent.yaml --region eu-central-1 --parameter-overrides ConfigFile=fileb://config.yaml

but it didn't work. is there a good way and known to do that?


回答1:


You can't currently pass your parameters in YAML format. It's a commonly requested feature.

One alternative is to pass your parameters in JSON format using the parameters argument:

--parameters params.json

params.json:

[
    {
        "ParameterKey": "Foo",
        "ParameterValue": "Bar"
    }
]


来源:https://stackoverflow.com/questions/53640618/how-to-pass-yamel-file-content-to-cloud-formation-nested-stack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!