Skip to content

ScaleChamp/terraform-provider-scalechamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-provider-scalechamp

ScaleChamp is a victorious managed databases provider

Example usage

provider "scalechamp" {
    token = "<token>"
}

resource "scalechamp_postgresql" "main_db" {
  name = "main_db"
  plan = "hobby-100"
  cloud = "do"
  region = "fra1"
  whitelist = ["<ip|subnet>"]
}

resource "scalechamp_redis" "redis_cache" {
  name = "cache"
  plan = "hobby-100"
  cloud = "do"
  region = "fra1"
  whitelist = ["<ip|subnet>"]
}

output "mypg" {
  value = "${scalechamp_postgresql.main_db.master_host} ${scalechamp_postgresql.main_db.password}"
}

output "myredis" {
  value = "${scalechamp_redis.redis_cache.master_host} ${scalechamp_redis.redis_cache.password}"
}