cd .. ip=$(cat ../setup/terraform/oci/terraform.tfstate|jq '.resources[]|select(.mode|contains("data"))|select(.type|contains("oci_core_instance"))|select(.name|contains("unitedservice")).instances[].attributes.public_ip'|sed 's/"//g') echo $ip micro=$( pwd|awk -F "/" '{print $NF}') echo $micro ssh -i "~/.ssh/id_rsa" root@$ip "bash -x /bin/kcreate "$micro