Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Terraform setup #341

Closed
wants to merge 8 commits into from
Closed

Add Terraform setup #341

wants to merge 8 commits into from

Conversation

mmsc2
Copy link

@mmsc2 mmsc2 commented Oct 27, 2023

What ❔

Why ❔

This PR adds the neccessary files to deploy a ZK server into hetzner with terraform. To build the setup it is required to have a hetzner token and set the ssh public key (or keys) inside the user_data.yml.

Inside the infraestructure/terraform directorty execute the following commands:

  1. terraform init
  2. terraform plan -var='hcloud_token'=<TOKEN>
  3. terraform apply -var='hcloud_token'=<TOKEN>

The second step is to check that everything is ok before deploying, it can be skipped.
In order to delete the server, the command terraform destroy -var='hcloud_token'=<TOKEN> can be executed.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@mmsc2 mmsc2 changed the title Terraform Add Terraform setup Oct 27, 2023
@popzxc
Copy link
Member

popzxc commented Feb 7, 2024

Closing as stale and unlikely to be merged

@popzxc popzxc closed this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants