Skip to content

Conversation

@goruha
Copy link
Member

@goruha goruha commented Oct 3, 2018

What

  • Added RDS as backing service

Why

  • To make it useful for some projects

@goruha goruha requested review from aknysh and osterman October 3, 2018 16:01
variable "RDS_SNAPSHOT" {
type = "string"
default = ""
description = "Restore snapshots"
Copy link
Member

Choose a reason for hiding this comment

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

Set to a snapshot ID to restore from snapshot

variable "RDS_PARAMETER_GROUP_NAME" {
type = "string"
default = ""
description = "Existed paramater group name to use"
Copy link
Member

Choose a reason for hiding this comment

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

Existing parameter group name to use

subnet_ids = ["${module.subnets.private_subnet_ids}"]
vpc_id = "${module.vpc.vpc_id}"
snapshot_identifier = "${var.RDS_SNAPSHOT}"
auto_minor_version_upgrade = "false"
Copy link
Member

Choose a reason for hiding this comment

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

parameterize?

vpc_id = "${module.vpc.vpc_id}"
snapshot_identifier = "${var.RDS_SNAPSHOT}"
auto_minor_version_upgrade = "false"
allow_major_version_upgrade = "false"
Copy link
Member

Choose a reason for hiding this comment

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

parameterize? (some users have been asking to be able to parameterize it)


output "rds_root_user" {
value = "${var.RDS_ADMIN_NAME}"
description = "RDS root name"
Copy link
Member

Choose a reason for hiding this comment

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

RDS root user name

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

see comments.
also, let's rename the file to aws/backing-services/rds-mysql.tf since it's just for MySQL and we could have other RDS databases

@goruha
Copy link
Member Author

goruha commented Oct 3, 2018

see comments.
also, let's rename the file to aws/backing-services/rds-mysql.tf since it's just for MySQL and we could > have other RDS databases

No. The same rds.tf can be applied to any types of db except aurora.
Mysql is just default one

enabled = "${var.RDS_ENABLED}"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "rds"
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 add and use variable name here

aknysh
aknysh previously approved these changes Oct 3, 2018
@goruha goruha merged commit c67b743 into master Oct 3, 2018
@goruha goruha deleted the feature/cp-11/rds-as-backing-service branch October 3, 2018 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants