Skip to content

Commit ad5cba4

Browse files
author
amanravi-squareops
committed
updated readme file
1 parent df03298 commit ad5cba4

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/complete/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,29 @@ This example will be very useful for users who are new to a module and want to q
1414
| Name | Version |
1515
|------|---------|
1616
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
17-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.43.0 |
17+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0.0 |
1818

1919
## Providers
2020

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

2525
## Modules
2626

2727
| Name | Source | Version |
2828
|------|--------|---------|
29-
| <a name="module_kms"></a> [kms](#module\_kms) | terraform-aws-modules/kms/aws | n/a |
30-
| <a name="module_rds-pg"></a> [rds-pg](#module\_rds-pg) | ../../ | n/a |
29+
| <a name="module_kms"></a> [kms](#module\_kms) | terraform-aws-modules/kms/aws | ~> 1.0 |
30+
| <a name="module_rds-pg"></a> [rds-pg](#module\_rds-pg) | squareops/rds-postgresql/aws | n/a |
3131
| <a name="module_vpc"></a> [vpc](#module\_vpc) | squareops/vpc/aws | n/a |
3232

3333
## Resources
3434

3535
| Name | Type |
3636
|------|------|
3737
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
38+
| [aws_eks_cluster.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
39+
| [aws_eks_cluster_auth.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
3840
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
3941

4042
## Inputs

examples/complete/main.tf

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ data "aws_caller_identity" "current" {}
2323
data "aws_region" "current" {}
2424

2525
module "kms" {
26-
source = "terraform-aws-modules/kms/aws"
27-
version = "~> 1.0"
26+
source = "terraform-aws-modules/kms/aws"
27+
version = "~> 1.0"
2828
deletion_window_in_days = 7
2929
description = "Complete key example showing various configurations available"
3030
enable_key_rotation = true
@@ -104,7 +104,7 @@ module "rds-pg" {
104104
db_name = "test"
105105
multi_az = "true"
106106
family = local.family
107-
vpc_id = module.vpc.vpc_id
107+
vpc_id = module.vpc.vpc_id
108108
allowed_security_groups = local.allowed_security_groups
109109
subnet_ids = module.vpc.database_subnets ## db subnets
110110
environment = local.environment
@@ -119,7 +119,7 @@ module "rds-pg" {
119119
skip_final_snapshot = true
120120
backup_window = "03:00-06:00"
121121
maintenance_window = "Mon:00:00-Mon:03:00"
122-
final_snapshot_identifier_prefix = "final"
122+
final_snapshot_identifier_prefix = "final"
123123
major_engine_version = local.engine_version
124124
deletion_protection = false
125125
cloudwatch_metric_alarms_enabled = false
@@ -130,22 +130,20 @@ module "rds-pg" {
130130
slack_channel = "postgresql-notification"
131131
slack_webhook_url = "https://hooks/xxxxxxxx"
132132
custom_user_password = local.custom_user_password
133-
#if you want backup and restore then you have to create your cluster with rds vpc id , private subnets, kms key.
133+
#if you want backup and restore then you have to create your cluster with rds vpc id , private subnets, kms key.
134134
#And allow cluster security group in rds security group
135-
cluster_name = ""
136-
namespace = local.namespace
137-
create_namespace = local.create_namespace
135+
cluster_name = ""
136+
namespace = local.namespace
137+
create_namespace = local.create_namespace
138138
postgresdb_backup_enabled = false
139139
postgresdb_backup_config = {
140-
postgres_database_name = "" # Specify the database name or Leave empty if you wish to backup all databases
141-
cron_for_full_backup = "*/2 * * * *" # set cronjob for backup
142-
bucket_uri = "s3://mongodb-backups-atmosly" # s3 bucket uri
140+
postgres_database_name = "" # Specify the database name or Leave empty if you wish to backup all databases
141+
cron_for_full_backup = "*/2 * * * *" # set cronjob for backup
142+
bucket_uri = "s3://mongodb-backups-atmosly" # s3 bucket uri
143143
}
144144
postgresdb_restore_enabled = false
145145
postgresdb_restore_config = {
146146
bucket_uri = "s3://mongodb-backups-atmosly" #S3 bucket URI (without a trailing slash /) containing the backup dump file.
147-
backup_file_name = "db5_20241114111607.sql" #Give .sql or .zip file for restore
147+
backup_file_name = "db5_20241114111607.sql" #Give .sql or .zip file for restore
148148
}
149149
}
150-
151-

0 commit comments

Comments
 (0)