Skip to content

Commit

Permalink
Merge pull request #1 from TradrAPI/feat/allows-configuring-bluegreen…
Browse files Browse the repository at this point in the history
…-updates

Add bluegreen update support to RDS + Add infra_store module
  • Loading branch information
o-leolleo authored Jul 26, 2023
2 parents 7b1c200 + 96f46c7 commit 5bef6a2
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ resource "aws_db_instance" "this" {

db_subnet_group_name = aws_db_subnet_group.this.id

blue_green_update {
enabled = var.blue_green_update_enabled
}

vpc_security_group_ids = [
aws_security_group.this.id
]
Expand Down
5 changes: 5 additions & 0 deletions aws/rds/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,8 @@ variable "manage_master_user_password" {
type = bool
default = false
}

variable "blue_green_update_enabled" {
type = bool
default = false
}
7 changes: 7 additions & 0 deletions utils/infra_store/examples/default/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module "infra_store" {
source = "../.."
}

output "const" {
value = module.infra_store.const
}
20 changes: 20 additions & 0 deletions utils/infra_store/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
output "const" {
value = {
any_port = 0
vpn_port = 1194
ssh_port = 22
https_port = 443
http_port = 80
node_exporter_port = 9100
redis_port = 6379
redshift_port = 5439
mysql_port = 3306

tcp_protocol = "tcp"
udp_protocol = "udp"
any_protocol = "-1"
all_ips = ["0.0.0.0/0"]
a_record = "A"
cname_record = "CNAME"
}
}

0 comments on commit 5bef6a2

Please sign in to comment.