Skip to content

Commit

Permalink
feat: add managed DB for news (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead authored Jul 31, 2023
1 parent 0b68a39 commit 7c505c1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions terraform/stg-cluster-oldeworld/next-05-nws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,26 @@ resource "linode_domain_record" "stg_oldeworld_nws_dnsrecord__private" {
target = linode_instance.stg_oldeworld_nws[each.key].private_ip_address
ttl_sec = 120
}

resource "linode_database_mysql" "stg_oldeworld_nws_db" {
engine_id = "mysql/5.7.39"
label = "stg-db-oldeworld-nws"
region = var.region
type = "g6-standard-2"

allow_list = flatten([
[for i in linode_instance.stg_oldeworld_nws : "${i.private_ip_address}/32"]
])

cluster_size = 3
replication_type = "asynch"
ssl_connection = true

updates {
day_of_week = "saturday"
duration = 1
frequency = "monthly"
hour_of_day = 22
week_of_month = 2
}
}

0 comments on commit 7c505c1

Please sign in to comment.