remote-workstation
Do not use this repository if you are not upamune.
Requirements
- Python 3.6.10
- Pipenv
Preparation
- Add SSH Keys in web console
- Generate a personal access token in web console
- (optional) Add a firewall in web console
- (optional) Add a floating IP in web console
Execute
Create
Idempotently by name. Default name is remote-workstation
.
Options
--token
- required
--firewall-id
- optional
--floating-ip
- optional
--snapshot-id
- optional
Example
# Create an instance.
$ python ./main.py create --token "${DIGITAL_OCEAN_API_KEY}" --firewall-id "${FIREWALL_ID}" --floating-ip "${FLOATING_IP}"
# Create an instance from snapshot.
$ python ./main.py create --token "${DIGITAL_OCEAN_API_KEY}" --firewall-id "${FIREWALL_ID}" --floating-ip "${FLOATING_IP}" --snapshot-id "${SNAPSHOT_ID}"
Destroy
$ python ./main.py destroy --token "${DIGITAL_OCEAN_API_KEY}"
Development
pipenv sync
pipenv shell
pipenv run format
pipenv run lint