civo apikey current production
civo ssh list |grep mini
| 5f81118c-1a69-4ba8-af0a-a73c308b3f51 | alex@space-mini.local | SHA256:PXVGBq8t7Fs4NKYdvZze6d2jR0y2Y4uPdIJB2H6DAzk |
export SSH_KEY_ID="5f81118c-1a69-4ba8-af0a-a73c308b3f51"
Then:
export HOSTNAME="gitops-prod.example.com"
civo instance show "${HOSTNAME}"
export EXISTS=$?
export TEMPLATE="811a8dfb-8202-49ad-b1ef-1e6320b20497"
if [ "${EXISTS}" -ne "0" ]
then
civo instance create \
${HOSTNAME} \
--template=${TEMPLATE} \
--ssh="${SSH_KEY_ID}"
fi
Think this got fixed in 0.3.4 - could you gem install civo_cli to make sure you have the latest version and try again? Could not replicate using that version.
Generated an SSH key and uploaded it:
Then:
Then: