1 Answer
- Newest
- Most votes
- Most comments
0
How about "echo `command` >> text.txt" to describe the result of the command execution?
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 7 months ago
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.