Skip to content

variable "source_db" , for rds replica option #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

agomezvidalee
Copy link
Contributor

Allow origin database for RDS replica.

@@ -17,6 +17,8 @@ resource "aws_db_instance" "this" {
password = "${var.password}"
port = "${var.port}"

replicate_source_db = "${var.source_db}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use variable and value the same - "replicate_source_db" (not "source_db")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated: replicate_source_db = "${var.replicate_source_db}"

@@ -21,6 +21,11 @@ variable "kms_key_id" {
default = ""
}

variable "source_db" {
description = "The master DB for replica"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make description more informative (follow official documentation):

Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description improved

-unify replicate_source_db var and value
-standarize var description
@agomezvidalee
Copy link
Contributor Author

Last changes commented in-line.

@antonbabenko
Copy link
Member

Rebase this PR, please.

@@ -44,6 +44,9 @@ module "db" {
backup_window = "03:00-06:00"
backup_retention_period = 0 // disable backups to create DB faster

# On replica option - Source DB for RDS replica
replicate_source_db = "${var.replicate_source_db}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this from example, because it won't be used so often.

@antonbabenko antonbabenko merged commit 92dd686 into terraform-aws-modules:master Oct 18, 2017
@antonbabenko
Copy link
Member

Thanks @agomezvidalee ! Your code has been released as v1.1.1.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants