backend: http -> cloud
This commit is contained in:
parent
07305f13c0
commit
b7add5777f
31
main.tf
31
main.tf
|
@ -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" {}
|
||||
|
|
Loading…
Reference in New Issue