1 個回答
- 最新
- 最多得票
- 最多評論
0
How about "echo `command` >> text.txt" to describe the result of the command execution?
相關內容
- 已提問 7 個月前
- 已提問 7 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
How about "echo `command` >> text.txt" to describe the result of the command execution?
my point is to have somewhere the command executed by cfn-init. Two examples.
If the command written in the stack file is "curl -k -s --request GET --header \"PRIVATE-TOKEN= qqqqq\" --url '<one url>' I would like to get in the log the command : curl -k -s --request GET --header "PRIVATE-TOKEN= qqqqq" --url '<one url> ' (back slash are removed)
If the command written in the stack file is { "Fn::Join" : ["", [ "curl -k --request POST --header 'PRIVATE-TOKEN: D77KrrH6YqkOzTTFr7Wq-' "," -F 'title=name' ", "-F 'key=", { "Ref" : "aParam" },"'", " --url ' <one url' "]]} I would like to get in the log the result of Fn::join with the parameter value.
So I do not think that echo could help me but tell me if I am wrong.