Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Last active December 22, 2019 10:45
Show Gist options
  • Select an option

  • Save 100daysofdevops/d5ce34c561f0836c310133084d3f29c5 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/d5ce34c561f0836c310133084d3f29c5 to your computer and use it in GitHub Desktop.
resource "aws_db_instance" "my_test_mysql" {
allocated_storage = 20
storage_type = "gp2"
engine = "mysql"
engine_version = "5.7"
instance_class = "${var.db_instance}"
name = "myrdstestmysql"
username = "admin"
password = "admin123"
parameter_group_name = "default.mysql5.7"
db_subnet_group_name = "${aws_db_subnet_group.rds-private-subnet.name}"
vpc_security_group_ids = ["${aws_security_group.rds-sg.id}"]
allow_major_version_upgrade = true
auto_minor_version_upgrade = true
backup_retention_period = 35
backup_window = "22:00-23:00"
maintenance_window = "Sat:00:00-Sat:03:00"
multi_az = true
skip_final_snapshot = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment