Skip to content

Commit

Permalink
push draft rds
Browse files Browse the repository at this point in the history
  • Loading branch information
marycrawford committed Jul 26, 2024
1 parent e4176b3 commit 7af38b0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ terraform.tfstate.backup
credentials.json
.bash_profile
awscli-bundle/

.secrets.txt
2 changes: 1 addition & 1 deletion terraform/aws/implementation/modules/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ resource "aws_db_instance" "query-templates" {
vpc_security_group_ids = var.private_subnet_ids
#parameter_group_name = aws_db_parameter_group.education.name
publicly_accessible = false
#skip_final_snapshot = true
skip_final_snapshot = true
}
39 changes: 39 additions & 0 deletions terraform/aws/implementation/modules/rds/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
variable "db_username" {
type = string
description = "Username of RDS Instance"
default = "tefcaViewerDbUser"
}

variable "db_password" {
type = string
description = "Password of RDS Instance"
# TODO: Turn on sensitive once the database is fully up and save real pwd
# as a variable to ingest from the pipeline (i.e. Github Secrets)
sensitive = true

}


variable "private_subnet_ids" {
type = list(string)
description = "List of private subnet IDs"
default = ["176.24.1.0/24", "176.24.3.0/24"]
}

# Note: only lowercase alphanumeric characters and hyphens allowed in "identifier"
variable "db_identifier" {
type = string
description = "Identifier Name of RDS Instance"
default = "query-templates"
}

variable "region" {
type = string
default = "us-east-1"
}

# variable "vpc_id" {
# type = string
# description = "ID of the VPC"
# default = "176.24.0.0/16"
# }

0 comments on commit 7af38b0

Please sign in to comment.