backend: http -> cloud

This commit is contained in:
kiara 2022-08-13 20:32:23 +00:00
parent 07305f13c0
commit b7add5777f
1 changed files with 20 additions and 11 deletions

31
main.tf
View File

@ -1,11 +1,20 @@
terraform {
backend "http" {}
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
provider "digitalocean" {}
terraform {
cloud {
hostname = "app.terraform.io" # Optional; defaults to app.terraform.io
organization = "bij1"
workspaces {
name = "infra"
}
}
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
provider "digitalocean" {}