cfn-get-metadata: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/cfn-get-metadata - from package: heat-cfntools

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/cfn-get-metadata - from package: heat-cfntools

You may install the required package with command apt-get install {package}
Error in other languages:
cfn-get-metadata: bevel nie gevind nie
cfn-get-metadata: comandă negăsită
cfn-get-metadata: comando não encontrado
cfn-get-metadata: commande introuvable
cfn-get-metadata: command not found
cfn-get-metadata: käsku ei ole
cfn-get-metadata: không tìm thấy lệnh
cfn-get-metadata: komanda nerasta
cfn-get-metadata: Kommando nicht gefunden.
cfn-get-metadata: kommandot finns inte
cfn-get-metadata: komut yok
cfn-get-metadata: nie znaleziono polecenia
cfn-get-metadata: níor aimsíodh an t-ordú
cfn-get-metadata: no se encontró la orden
cfn-get-metadata: no s'ha trobat l'ordre
cfn-get-metadata: opdracht niet gevonden
cfn-get-metadata: parancs nem található
cfn-get-metadata: perintah tidak ditemukan
cfn-get-metadata: príkaz nenájdený
cfn-get-metadata: příkaz nenalezen
cfn-get-metadata: команда не найдена
cfn-get-metadata: командата не е открита
cfn-get-metadata: 命令找不到
cfn-get-metadata: コマンドが見つかりません