Skip to content

Commit

Permalink
Merge pull request #17 from coveo/fix_unwanted_changes_in_mysql_provider
Browse files Browse the repository at this point in the history
Add optionals for tls_option and table in mysql_schema_configuration module
  • Loading branch information
jmorissette authored Nov 8, 2018
2 parents 713c108 + 9fa04c7 commit 671294d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mysql_schema_configuration/mysql_schema_configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@ resource "mysql_database" "schema" {
}

resource "mysql_user" "user" {
user = "${var.username}"
user = "${var.username}"

host = "%"
plaintext_password = "${var.password}"
tls_option = "${lookup(var.optional_parameters, "tls_option", "")}"
}

resource "mysql_grant" "grants" {
database = "${mysql_database.schema.name}"

user = "${mysql_user.user.user}"
host = "${mysql_user.user.host}"
database = "${mysql_database.schema.name}"
privileges = "${var.user_privileges}"
table = "${lookup(var.optional_parameters, "grants_table", "")}"
tls_option = "${lookup(var.optional_parameters, "tls_option", "")}"
}

resource "aws_ssm_parameter" "username" {
Expand Down

0 comments on commit 671294d

Please sign in to comment.