Hey, I've tried setting it all up but I get the following error:
ondemand_to_spot.sh: 7: export: i-0278bf10da31b66a9: bad variable name
I suspect some small change in the bash script would do, but I'm still not sure what that should be. Could you please look into that?
Thanks a lot!
So using a temporary fix (substitution instance id in the script) worked but then that was the output:
CURRENTSTATE 32 shutting-down
PREVIOUSSTATE 16 running
Waiting for volume to become available.
ondemand_to_spot.sh: 91: ondemand_to_spot.sh: cannot create ec2-spotter/.aws.creds: Directory nonexistent
All done, you can start your spot instance with: sh start_spot.sh
Then, when I tried to do sh start_spot.sh, it stated the following:
start_spot.sh: 5: start_spot.sh: Bad substitution
../ec2spotter-launch: line 38: .aws.creds: No such file or directory
Spot request ID:
Waiting for spot request to be fulfilled...
Waiter SpotInstanceRequestFulfilled failed: Max attempts exceeded
Waiting for spot instance to start up...
Waiter InstanceRunning failed: Waiter encountered a terminal failure state
Spot instance ID:
Please allow the root volume swap script a few minutes to finish.
Then connect to your instance: ssh -i /home/slazien/.ssh/aws-key-fast-ai.pem ubuntu@
I'm not sure what that could be and I'm not sure which variable name from the first issue could be wrong...
So I managed to fix my first issue (getting instance ID), but I'm still stuck at "ondemand_to_spot.sh: 91: ondemand_to_spot.sh: cannot create ec2-spotter/.aws.creds: Directory nonexistent", even though I created the directory manually...