diff --git a/README.md b/README.md index 9d77e27..f4e1bad 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,8 @@ such as extended backups, user management, and autoscaling. | Name | Description | |------|-------------| -| [cluster\_endpoint](#output\_cluster\_endpoint) | n/a | -| [instance\_endpoint](#output\_instance\_endpoint) | n/a | +| [cluster\_endpoint](#output\_cluster\_endpoint) | The cluster endpoint | +| [instance\_endpoint](#output\_instance\_endpoint) | The instance endpoint | ## Providers diff --git a/main.tf b/main.tf index 8dba422..a0f626f 100644 --- a/main.tf +++ b/main.tf @@ -133,7 +133,7 @@ module "db_event_subscription" { module "backup" { count = var.enable_enhanced_backups ? 1 : 0 - source = "github.com/geekcell/terraform-aws-backup?ref=main" + source = "github.com/geekcell/terraform-aws-backup?ref=v1" # Vault name for this backup vault_name = "${var.cluster_identifier}-rds" diff --git a/modules/db_event_subscription/main.tf b/modules/db_event_subscription/main.tf index b64e73f..5beb495 100644 --- a/modules/db_event_subscription/main.tf +++ b/modules/db_event_subscription/main.tf @@ -13,7 +13,7 @@ resource "aws_db_event_subscription" "main" { } module "notification" { - source = "github.com/geekcell/terraform-aws-sns-email-notification?ref=v1.1" + source = "github.com/geekcell/terraform-aws-sns-email-notification?ref=v1" name = var.name email_addresses = var.recipients diff --git a/modules/db_proxy_secret/main.tf b/modules/db_proxy_secret/main.tf index b0227c8..dba978e 100644 --- a/modules/db_proxy_secret/main.tf +++ b/modules/db_proxy_secret/main.tf @@ -27,7 +27,7 @@ resource "aws_secretsmanager_secret_version" "main" { } module "kms" { - source = "github.com/geekcell/terraform-aws-kms?ref=main" + source = "github.com/geekcell/terraform-aws-kms?ref=v1" alias = var.name diff --git a/modules/rds_cluster/README.md b/modules/rds_cluster/README.md index 01c28e5..768e91b 100644 --- a/modules/rds_cluster/README.md +++ b/modules/rds_cluster/README.md @@ -42,9 +42,9 @@ | Name | Description | |------|-------------| -| [arn](#output\_arn) | n/a | -| [endpoint](#output\_endpoint) | n/a | -| [id](#output\_id) | n/a | +| [arn](#output\_arn) | The ARN of the cluster | +| [endpoint](#output\_endpoint) | The cluster endpoint | +| [id](#output\_id) | The ID of the cluster | ## Providers diff --git a/modules/rds_cluster/main.tf b/modules/rds_cluster/main.tf index 69b61e3..9d924e6 100644 --- a/modules/rds_cluster/main.tf +++ b/modules/rds_cluster/main.tf @@ -82,7 +82,7 @@ module "autoscaling" { module "kms" { for_each = toset(["storage"]) - source = "github.com/geekcell/terraform-aws-kms?ref=main" + source = "github.com/geekcell/terraform-aws-kms?ref=v1" alias = format("/rds/cluster/%s/%s", var.cluster_identifier, each.key) } diff --git a/modules/rds_cluster/outputs.tf b/modules/rds_cluster/outputs.tf index 6cf2e42..67bd56b 100644 --- a/modules/rds_cluster/outputs.tf +++ b/modules/rds_cluster/outputs.tf @@ -1,11 +1,14 @@ output "arn" { - value = aws_rds_cluster.main.arn + description = "The ARN of the cluster" + value = aws_rds_cluster.main.arn } output "id" { - value = aws_rds_cluster.main.id + description = "The ID of the cluster" + value = aws_rds_cluster.main.id } output "endpoint" { - value = aws_rds_cluster.main.endpoint + description = "The cluster endpoint" + value = aws_rds_cluster.main.endpoint } diff --git a/modules/rds_cluster_instance/main.tf b/modules/rds_cluster_instance/main.tf index 850dc21..8a34fa8 100644 --- a/modules/rds_cluster_instance/main.tf +++ b/modules/rds_cluster_instance/main.tf @@ -51,7 +51,7 @@ module "db_enhanced_monitoring" { module "kms" { for_each = toset(["performance_insights"]) - source = "github.com/geekcell/terraform-aws-kms?ref=main" + source = "github.com/geekcell/terraform-aws-kms?ref=v1" alias = format("alias/rds/cluster/%s/instance/%s/%s", var.identifier, var.identifier, each.key) } diff --git a/outputs.tf b/outputs.tf index 636e3a9..6b8fca0 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,7 +1,9 @@ output "cluster_endpoint" { - value = module.rds_cluster.endpoint + description = "The cluster endpoint" + value = module.rds_cluster.endpoint } output "instance_endpoint" { - value = module.rds_cluster_instance.endpoint + description = "The instance endpoint" + value = module.rds_cluster_instance.endpoint }