Skip to content

Commit 3dd5141

Browse files
Updated references and readme.md file
1 parent 79dc67b commit 3dd5141

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module "rds-pg" {
3434
replica_enable = false
3535
replica_count = 1
3636
kms_key_arn = "arn:aws:kms:region:2222222222:key/f8c8d802-a34b"
37+
storage_type = "gp3"
3738
engine_version = "15.2"
3839
instance_class = "db.m5.large"
3940
master_username = "pguser"
@@ -54,7 +55,7 @@ module "rds-pg" {
5455
slack_webhook_url = "https://hooks/xxxxxxxx"
5556
}
5657
```
57-
Refer [examples](https://github.com/squareops/terraform-aws-rds-postgresql/tree/main/examples/complete) for more details.
58+
Refer [examples](https://github.com/squareops/terraform-aws-rds-postgresql/tree/main/examples) for more details.
5859

5960
## IAM Permissions
6061
The required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-aws-rds-postgresql/blob/main/IAM.md)

examples/complete-psql-replica/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This example will be very useful for users who are new to a module and want to q
2020

2121
| Name | Version |
2222
|------|---------|
23-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.13.1 |
23+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.43.0 |
2424

2525
## Modules
2626

examples/complete-psql-replica/main.tf

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
locals {
22
region = "us-east-2"
3-
environment = "prod"
43
name = "postgresql"
5-
additional_tags = {
6-
Owner = "Organization_Name"
7-
Expires = "Never"
8-
Department = "Engineering"
9-
}
10-
family = "postgres15"
11-
vpc_cidr = "10.20.0.0/16"
4+
family = "postgres15"
5+
vpc_cidr = "10.20.0.0/16"
6+
environment = "prod"
127
storage_type = "gp3"
138
engine_version = "15.2"
14-
current_identity = data.aws_caller_identity.current.arn
15-
allowed_security_groups = ["sg-0a680afd35"]
169
instance_class = "db.m5d.large"
1710
replica_enable = true
1811
replica_count = 1
12+
current_identity = data.aws_caller_identity.current.arn
13+
allowed_security_groups = ["sg-0a680afd35"]
14+
additional_tags = {
15+
Owner = "Organization_Name"
16+
Expires = "Never"
17+
Department = "Engineering"
18+
}
1919
}
2020

2121
data "aws_caller_identity" "current" {}

examples/complete/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This example will be very useful for users who are new to a module and want to q
2020

2121
| Name | Version |
2222
|------|---------|
23-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.13.1 |
23+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.43.0 |
2424

2525
## Modules
2626

examples/complete/main.tf

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ locals {
22
region = "us-east-2"
33
name = "postgresql"
44
family = "postgres15"
5+
vpc_cidr = "10.20.0.0/16"
56
environment = "prod"
67
engine_version = "15.2"
78
instance_class = "db.m5d.large"
8-
vpc_cidr = "10.20.0.0/16"
9+
storage_type = "gp3"
10+
current_identity = data.aws_caller_identity.current.arn
911
allowed_security_groups = ["sg-0a680afd35"]
1012
additional_tags = {
1113
Owner = "Organization_Name"
1214
Expires = "Never"
1315
Department = "Engineering"
1416
}
15-
storage_type = "gp3"
16-
current_identity = data.aws_caller_identity.current.arn
1717
}
1818

1919
data "aws_caller_identity" "current" {}
@@ -24,10 +24,10 @@ module "kms" {
2424

2525
deletion_window_in_days = 7
2626
description = "Complete key example showing various configurations available"
27-
enable_key_rotation = false
27+
enable_key_rotation = true
2828
is_enabled = true
2929
key_usage = "ENCRYPT_DECRYPT"
30-
multi_region = false
30+
multi_region = true
3131

3232
# Policy
3333
enable_default_policy = true
@@ -77,7 +77,7 @@ module "kms" {
7777
# Aliases
7878
aliases = ["${local.name}"]
7979

80-
tags = local.additional_aws_tags
80+
tags = local.additional_tags
8181
}
8282

8383

@@ -121,7 +121,7 @@ module "rds-pg" {
121121
cloudwatch_metric_alarms_enabled = true
122122
alarm_cpu_threshold_percent = 70
123123
disk_free_storage_space = "10000000" # in bytes
124-
slack_username = ""
125-
slack_channel = ""
126-
slack_webhook_url = ""
124+
slack_username = "Admin"
125+
slack_channel = "postgresql-notification"
126+
slack_webhook_url = "https://hooks/xxxxxxxx"
127127
}

0 commit comments

Comments
 (0)