Commit a6a2da77 authored by Santiago Ocamica's avatar Santiago Ocamica Committed by Anton Babenko

Adds support for snapshot_identifier (#18)

parent 92dd6864
......@@ -51,6 +51,8 @@ module "db_instance" {
replicate_source_db = "${var.replicate_source_db}"
snapshot_identifier = "${var.snapshot_identifier}"
vpc_security_group_ids = ["${var.vpc_security_group_ids}"]
db_subnet_group_name = "${module.db_subnet_group.this_db_subnet_group_id}"
parameter_group_name = "${module.db_parameter_group.this_db_parameter_group_id}"
......
......@@ -21,6 +21,8 @@ resource "aws_db_instance" "this" {
replicate_source_db = "${var.replicate_source_db}"
snapshot_identifier = "${var.snapshot_identifier}"
vpc_security_group_ids = ["${var.vpc_security_group_ids}"]
db_subnet_group_name = "${var.db_subnet_group_name}"
parameter_group_name = "${var.parameter_group_name}"
......
......@@ -26,6 +26,11 @@ variable "replicate_source_db" {
default = ""
}
variable "snapshot_identifier" {
description = "Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05."
default = ""
}
variable "license_model" {
description = "License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1"
default = ""
......
......@@ -26,6 +26,11 @@ variable "replicate_source_db" {
default = ""
}
variable "snapshot_identifier" {
description = "Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05."
default = ""
}
variable "license_model" {
description = "License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1"
default = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment