Skip to content

Commit 19b2407

Browse files
authored
Merge pull request #9 from Datatamer/DEV-14276
DEV-14276 Make READMEs consistent.
2 parents d416a31 + a16afd1 commit 19b2407

File tree

4 files changed

+46
-31
lines changed

4 files changed

+46
-31
lines changed

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,54 @@ This repo follows the [terraform standard module structure](https://www.terrafor
77
Inline example implementation of the module. This is the most basic example of what it would look like to use this module.
88
```
99
module "rds_postgres" {
10-
source = "git::https://github.com/Datatamer/terraform-aws-rds-postgres.git?ref=0.3.0"
11-
postgres_name = "example_rds_postgres"
12-
parameter_group_name = "example-rds-postgres-pg"
13-
identifier_prefix = "example-rds-"
14-
username = "exampleUsername"
15-
password = "examplePassword"
10+
source = "git::https://github.com/Datatamer/terraform-aws-rds-postgres.git?ref=0.3.0"
11+
postgres_name = "example_rds_postgres"
12+
parameter_group_name = "example-rds-postgres-pg"
13+
identifier_prefix = "example-rds-"
14+
username = "exampleUsername"
15+
password = "examplePassword"
1616
17-
subnet_group_name = "example_subnet"
18-
rds_subnet_ids = ["example-subnet-1", "example-subnet-2"]
19-
spark_cluster_sg_ids = ["sg-examplesecuritygroup1", "sg-examplesecuritygroup2"]
20-
tamr_vm_sg_id = "sg-exampletamrsecuritygroup"
21-
vpc_id = "vpc-examplevpcnetworkid"
17+
subnet_group_name = "example_subnet"
18+
rds_subnet_ids = ["example-subnet-1", "example-subnet-2"]
19+
spark_cluster_sg_ids = ["sg-examplesecuritygroup1", "sg-examplesecuritygroup2"]
20+
tamr_vm_sg_id = "sg-exampletamrsecuritygroup"
21+
vpc_id = "vpc-examplevpcnetworkid"
2222
}
2323
```
24+
## Minimal
25+
Smallest complete fully working example. This example might require extra resources to run the example.
26+
- [Minimal](https://github.com/Datatamer/terraform-aws-rds-postgres/tree/master/examples/minimal)
2427

2528
# Resources Created
2629
This terraform module will create:
2730
* an AWS RDS Postgres instance
28-
* database parameter group
29-
* A security group for the rds instance
31+
* a database parameter group
32+
* a security group for the rds instance
3033

3134
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
3235
## Requirements
3336

3437
| Name | Version |
3538
|------|---------|
3639
| terraform | >= 0.12 |
40+
| aws | >= 2.45.0 |
3741

3842
## Providers
3943

4044
| Name | Version |
4145
|------|---------|
42-
| aws | n/a |
46+
| aws | >= 2.45.0 |
4347

4448
## Inputs
4549

4650
| Name | Description | Type | Default | Required |
4751
|------|-------------|------|---------|:--------:|
4852
| password | The postgres password | `string` | n/a | yes |
53+
| rds\_subnet\_ids | VPC subnet IDs in subnet group | `list(string)` | n/a | yes |
4954
| spark\_cluster\_sg\_ids | Security group is attached to the ec2 instances of EMR Spark | `list(string)` | n/a | yes |
55+
| subnet\_group\_name | The name of the subnet group to add the RDS instance to | `string` | n/a | yes |
5056
| tamr\_vm\_sg\_id | Security group id attached to the tamr vm | `string` | n/a | yes |
5157
| vpc\_id | VPC ID for the rds security group | `string` | n/a | yes |
52-
| subnet\_group\_name | The name of the subnet group to add the RDS instance to | `string` | n/a | yes |
53-
| rds\_subnet\_ids | List of subnet IDs to add to subnet group | `list(string)` | n/a | yes |
5458
| additional\_cidrs | Additional CIDR to connect to RDS Postgres instance | `list(string)` | `[]` | no |
5559
| additional\_tags | Additional tags to set on the RDS instance | `map` | `{}` | no |
5660
| allocated\_storage | Allocate storage | `number` | `20` | no |
@@ -90,6 +94,7 @@ This terraform module will create:
9094
## Releasing new versions
9195
* Updated version contained in `VERSION`
9296
* Documented changes in `CHANGELOG.md`
97+
* Create a tag in github for the commit associated with the version
9398

9499
# License
95100
Apache 2 Licensed. See LICENSE for full details.

modules/rds-postgres-sg/README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,33 @@ This terraform module creates the security group and the security group rules fo
44
# Example
55
```
66
module "rds_sg" {
7-
source = "./modules/rds-postgres-sg"
8-
spark_cluster_sg_ids = ["sg-examplesparksecuritygroup1", "sg-examplesparksecuritygroup2"]
9-
tamr_vm_sg_id = "sg-exampletamrvmsecuritygroup"
10-
vpc_id = "vpc-examplevpcid"
11-
security_group_name = "examplerdssecuritygroup"
12-
additional_cidrs = ["1.2.3.4/32"]
7+
source = "git::https://github.com/Datatamer/terraform-aws-rds-postgres.git//modules/rds-postgres-sg?ref=0.3.0"
8+
spark_cluster_sg_ids = ["sg-examplesparksecuritygroup1", "sg-examplesparksecuritygroup2"]
9+
tamr_vm_sg_id = "sg-exampletamrvmsecuritygroup"
10+
vpc_id = "vpc-examplevpcid"
11+
security_group_name = "examplerdssecuritygroup"
12+
additional_cidrs = ["1.2.3.4/32"]
1313
}
1414
```
1515

16+
# Resources Created
17+
This terraform module will create:
18+
* a security group for the RDS instance
19+
* security group rules if additional CIDRs are provided
20+
1621
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
1722
## Requirements
1823

19-
No requirements.
24+
| Name | Version |
25+
|------|---------|
26+
| terraform | >= 0.12 |
27+
| aws | >= 2.45.0 |
2028

2129
## Providers
2230

2331
| Name | Version |
2432
|------|---------|
25-
| aws | n/a |
33+
| aws | >= 2.45.0 |
2634

2735
## Inputs
2836

@@ -42,9 +50,3 @@ No requirements.
4250
| rds\_sg\_id | n/a |
4351

4452
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
45-
46-
# AWS Resources created
47-
This terraform module creates 1 Security Group:
48-
* A security group for the RDS instance
49-
50-
This terraform module also creates Security Group Rules. The number of Security Group rules vary depending on the additional CIDRs provided.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
terraform {
2+
required_version = ">= 0.12"
3+
required_providers {
4+
aws = ">= 2.45.0"
5+
}
6+
}

versions.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
21
terraform {
32
required_version = ">= 0.12"
3+
required_providers {
4+
aws = ">= 2.45.0"
5+
}
46
}

0 commit comments

Comments
 (0)