description: This scenario launches instances on a single compute node and retrieves their metadata. deployment: template: instance_metadata.hot accommodation: [single_room, density: 2, compute_nodes: 1] execution: tests: - title: Instance Metadata class: shell script: | #!/bin/sh metadata=`curl http://169.254.169.254/latest/meta-data/ 2>/dev/null` echo "{" for line in ${metadata}; do val=`curl http://169.254.169.254/latest/meta-data/$line 2>/dev/null | tr "\n" ","` echo "\"$line\": \"${val}\"," done key=`curl http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key 2>/dev/null | tr "\n" ""` echo "\"public-keys/0/openssh-key\": \"${key}\"" echo "}"