Skip to content

Commit

Permalink
fix digitalocean terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
arriven committed May 21, 2022
1 parent 9be26df commit 5ef3e3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/digital_ocean/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ resource "digitalocean_app" "db1000n" {
instance_count = var.instance_count
instance_size_slug = var.instance_size_slug

env {
key = "CONFIG"
value = "${var.config_path}"
}

git {
repo_clone_url = var.repo
branch = "main"
Expand Down
5 changes: 5 additions & 0 deletions terraform/digital_ocean/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ variable "region" {
type = string
default = "nyc1"
}

variable "config_path" {
type = string
default = "https://gist.githubusercontent.com/ddosukraine2022/f739250dba308a7a2215617b17114be9/raw/db1000n_targets.json"
}

0 comments on commit 5ef3e3c

Please sign in to comment.