Commit 9bd4d7ee authored by Anton Babenko's avatar Anton Babenko

Fixed warning in output (fixes #32 and #31)

parent 7d1ad362
...@@ -25,7 +25,7 @@ module "db" { ...@@ -25,7 +25,7 @@ module "db" {
identifier = "demodb" identifier = "demodb"
engine = "mysql" engine = "mysql"
engine_version = "5.7.11" engine_version = "5.7.19"
instance_class = "db.t2.large" instance_class = "db.t2.large"
allocated_storage = 5 allocated_storage = 5
......
...@@ -26,8 +26,9 @@ module "db" { ...@@ -26,8 +26,9 @@ module "db" {
identifier = "demodb" identifier = "demodb"
# All available versions: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt
engine = "mysql" engine = "mysql"
engine_version = "5.7.11" engine_version = "5.7.19"
instance_class = "db.t2.large" instance_class = "db.t2.large"
allocated_storage = 5 allocated_storage = 5
storage_encrypted = false storage_encrypted = false
......
# DB parameter group # DB parameter group
output "this_db_parameter_group_id" { output "this_db_parameter_group_id" {
description = "The db parameter group id" description = "The db parameter group id"
value = "${aws_db_parameter_group.this.id}" value = "${element(split(",", join(",", aws_db_parameter_group.this.*.id)), 0)}"
} }
output "this_db_parameter_group_arn" { output "this_db_parameter_group_arn" {
description = "The ARN of the db parameter group" description = "The ARN of the db parameter group"
value = "${aws_db_parameter_group.this.arn}" value = "${element(split(",", join(",", aws_db_parameter_group.this.*.arn)), 0)}"
} }
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