11# Tamr AWS RDS Terraform Module
2- This terraform module creates an AWS RDS postgres instance.
2+ This terraform module creates an AWS RDS postgres instance that will be used by TAMR .
33This repo follows the [ terraform standard module structure] ( https://www.terraform.io/docs/modules/index.html#standard-module-structure ) .
44
55# Examples
66## Basic
77Inline example implementation of the module. This is the most basic example of what it would look like to use this module.
88```
99module "rds_postgres" {
10- source = "git::https://github.com/Datatamer/terraform-rds-postgres?ref=0.1.0"
11- postgres_name = "tamr_rds_db "
12- parameter_group_name = "tamr -rds-postgres-pg"
13- identifier_prefix = "tamr -rds-"
10+ source = "git::https://github.com/Datatamer/terraform-rds-postgres.git ?ref=0.1.0"
11+ postgres_name = "example_rds_postgres "
12+ parameter_group_name = "example -rds-postgres-pg"
13+ identifier_prefix = "example -rds-"
1414
15- username = "tamr "
16- password = "8characterpassword "
15+ username = "exampleUsername "
16+ password = "examplePassword "
1717
18- subnet_name = "rds_private"
19- vpc_security_group_ids = []
18+ subnet_name = "example_subnet"
19+ spark_cluster_sg_ids = ["sg-examplesecuritygroup1", "sg-examplesecuritygroup2"]
20+ tamr_vm_sg_id = "sg-exampletamrsecuritygroup"
21+ vpc_id = "vpc-examplevpcnetworkid"
2022}
2123```
2224
2325# Resources Created
2426This terraform module will create:
2527* an AWS RDS Postgres instance
2628* database parameter group
29+ * A security group for the rds instance
2730
2831# Variables
2932## Inputs
30- * ` vpc_security_group_ids ` (required): List of VPC security groups to associate
3133* ` password ` (required): The postgres password
34+ * ` tamr_vm_sg_id ` (required): Security group id attached to the tamr vm
35+ * ` spark_cluster_sg_id ` (required): Security group is attached to the ec2 instances of EMR Spark
36+ * ` vpc_id ` (required): VPC ID for the rds security group
3237* ` username ` (optional): The postgres username
3338* ` postgres_name ` (optional): The name of the postgres instance
3439* ` parameter_group_name ` (optional): The name of the rds parameter group
@@ -45,20 +50,22 @@ This terraform module will create:
4550* ` apply_immediately ` (optional): Apply immediately, do not set this to true for production
4651* ` copy_tags_to_snapshot ` (optional): Copy tags to snapshots
4752* ` additional_tags ` (optional): Tags to set on the RDS instance
53+ * ` security_group_name ` (optional): Name for the security group for the rds instance
54+ * ` additional_cidrs ` (optional): Additional CIDR to connect to RDS Postgres instance
4855
4956## Outputs
5057* ` rds_postgres_pg_id ` : ID of the RDS postgres parameter group
5158* ` rds_postgres_id ` : ID of the of the RDS instance
59+ * ` rds_sg_id ` : ID of the security group attached to the RDS instance
5260
5361# References
5462* AWS RDS: https://aws.amazon.com/rds/features/
5563* Terraform module structure: https://www.terraform.io/docs/modules/index.html#standard-module-structure
5664
5765# Development
5866## Releasing new versions
59- * Update version contained in ` VERSION `
60- * Document changes in ` CHANGELOG.md `
61- * Create a tag in github for the commit associated with the version
67+ * Updated version contained in ` VERSION `
68+ * Documented changes in ` CHANGELOG.md `
6269
6370# License
6471Apache 2 Licensed. See LICENSE for full details.
0 commit comments