write-ups-challenges-2020-2021/deployment/setup.sh

11 lines
279 B
Bash
Raw Normal View History

2022-11-24 17:03:20 +00:00
#!/usr/bin/env bash
echo "Provisioning instance"
SERVER_ID=$(scw create --commercial-type=STARDUST1-S --name=igctf-test3 449bdf2d)
scw _userdata $SERVER_ID cloud-init=@$PWD/nix-infect-init.yaml
scw start $SERVER_ID
IP=$(scw inspect $SERVER_ID -f '.server.public_ip.address')