main.tf 502 B

12345678910111213141516171819202122232425
  1. provider "pass" {
  2. store_dir = "../secrets"
  3. refresh_store = false
  4. }
  5. data "pass_password" "hcloud-token" {
  6. path = "hcloud-token"
  7. }
  8. provider "hcloud" {
  9. token = data.pass_password.hcloud-token.password
  10. }
  11. resource "hcloud_ssh_key" "concourse-web" {
  12. name = "conocurse-web"
  13. public_key = file("../public-keys/ssh/concourse")
  14. }
  15. resource "hcloud_server" "concourse-web" {
  16. name = "concourse-web"
  17. server_type = "cx11"
  18. image = "ubuntu-20.04"
  19. ssh_keys = [hcloud_ssh_key.concourse-web.name]
  20. }