From 3395c8d5b903199d1e9ff895dc5ec23dc55f2793 Mon Sep 17 00:00:00 2001 From: magreenbaum Date: Fri, 13 Dec 2024 23:54:04 -0500 Subject: [PATCH 1/2] seconds_until_auto_pause --- README.md | 4 +- examples/autoscaling/README.md | 4 +- examples/autoscaling/versions.tf | 2 +- examples/global-cluster/README.md | 6 +- examples/global-cluster/versions.tf | 2 +- examples/multi-az/README.md | 4 +- examples/multi-az/versions.tf | 2 +- examples/mysql/README.md | 4 +- examples/mysql/versions.tf | 2 +- examples/postgresql/README.md | 4 +- examples/postgresql/versions.tf | 2 +- examples/s3-import/README.md | 4 +- examples/s3-import/versions.tf | 2 +- examples/serverless/README.md | 88 +-- examples/serverless/main.tf | 7 +- examples/serverless/outputs.tf | 924 ++++++++++++++-------------- examples/serverless/versions.tf | 2 +- main.tf | 5 +- versions.tf | 2 +- 19 files changed, 495 insertions(+), 575 deletions(-) diff --git a/README.md b/README.md index 8320160a..af333a18 100644 --- a/README.md +++ b/README.md @@ -224,13 +224,13 @@ Terraform documentation is generated automatically using [pre-commit hooks](http | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/autoscaling/README.md b/examples/autoscaling/README.md index fe30dc9d..673eae90 100644 --- a/examples/autoscaling/README.md +++ b/examples/autoscaling/README.md @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/autoscaling/versions.tf b/examples/autoscaling/versions.tf index 264f62f5..4969d64d 100644 --- a/examples/autoscaling/versions.tf +++ b/examples/autoscaling/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } diff --git a/examples/global-cluster/README.md b/examples/global-cluster/README.md index 811f9e9d..0f49a415 100644 --- a/examples/global-cluster/README.md +++ b/examples/global-cluster/README.md @@ -20,15 +20,15 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | | [random](#requirement\_random) | >= 2.2 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | -| [aws.secondary](#provider\_aws.secondary) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | +| [aws.secondary](#provider\_aws.secondary) | >= 5.81 | | [random](#provider\_random) | >= 2.2 | ## Modules diff --git a/examples/global-cluster/versions.tf b/examples/global-cluster/versions.tf index f2a51a09..b4c052db 100644 --- a/examples/global-cluster/versions.tf +++ b/examples/global-cluster/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } random = { diff --git a/examples/multi-az/README.md b/examples/multi-az/README.md index cba8c942..a8cf5a30 100644 --- a/examples/multi-az/README.md +++ b/examples/multi-az/README.md @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/multi-az/versions.tf b/examples/multi-az/versions.tf index 264f62f5..4969d64d 100644 --- a/examples/multi-az/versions.tf +++ b/examples/multi-az/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } diff --git a/examples/mysql/README.md b/examples/mysql/README.md index a0329c5a..5ef47896 100644 --- a/examples/mysql/README.md +++ b/examples/mysql/README.md @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/mysql/versions.tf b/examples/mysql/versions.tf index 264f62f5..4969d64d 100644 --- a/examples/mysql/versions.tf +++ b/examples/mysql/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } diff --git a/examples/postgresql/README.md b/examples/postgresql/README.md index 5a0d1ee8..c7ee6bf6 100644 --- a/examples/postgresql/README.md +++ b/examples/postgresql/README.md @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/postgresql/versions.tf b/examples/postgresql/versions.tf index 264f62f5..4969d64d 100644 --- a/examples/postgresql/versions.tf +++ b/examples/postgresql/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } diff --git a/examples/s3-import/README.md b/examples/s3-import/README.md index 7e7304b3..8f65cf16 100644 --- a/examples/s3-import/README.md +++ b/examples/s3-import/README.md @@ -49,13 +49,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | ## Modules diff --git a/examples/s3-import/versions.tf b/examples/s3-import/versions.tf index 264f62f5..4969d64d 100644 --- a/examples/s3-import/versions.tf +++ b/examples/s3-import/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } diff --git a/examples/serverless/README.md b/examples/serverless/README.md index 55223171..90189a7c 100644 --- a/examples/serverless/README.md +++ b/examples/serverless/README.md @@ -20,14 +20,14 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.64 | +| [aws](#requirement\_aws) | >= 5.81 | | [random](#requirement\_random) | >= 3.5 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.64 | +| [aws](#provider\_aws) | >= 5.81 | | [random](#provider\_random) | >= 3.5 | ## Modules @@ -54,87 +54,5 @@ No inputs. ## Outputs -| Name | Description | -|------|-------------| -| [aurora\_mysql\_v2\_additional\_cluster\_endpoints](#output\_aurora\_mysql\_v2\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | -| [aurora\_mysql\_v2\_cluster\_arn](#output\_aurora\_mysql\_v2\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | -| [aurora\_mysql\_v2\_cluster\_database\_name](#output\_aurora\_mysql\_v2\_cluster\_database\_name) | Name for an automatically created database on cluster creation | -| [aurora\_mysql\_v2\_cluster\_endpoint](#output\_aurora\_mysql\_v2\_cluster\_endpoint) | Writer endpoint for the cluster | -| [aurora\_mysql\_v2\_cluster\_engine\_version\_actual](#output\_aurora\_mysql\_v2\_cluster\_engine\_version\_actual) | The running version of the cluster database | -| [aurora\_mysql\_v2\_cluster\_hosted\_zone\_id](#output\_aurora\_mysql\_v2\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | -| [aurora\_mysql\_v2\_cluster\_id](#output\_aurora\_mysql\_v2\_cluster\_id) | The RDS Cluster Identifier | -| [aurora\_mysql\_v2\_cluster\_instances](#output\_aurora\_mysql\_v2\_cluster\_instances) | A map of cluster instances and their attributes | -| [aurora\_mysql\_v2\_cluster\_master\_password](#output\_aurora\_mysql\_v2\_cluster\_master\_password) | The database master password | -| [aurora\_mysql\_v2\_cluster\_master\_username](#output\_aurora\_mysql\_v2\_cluster\_master\_username) | The database master username | -| [aurora\_mysql\_v2\_cluster\_members](#output\_aurora\_mysql\_v2\_cluster\_members) | List of RDS Instances that are a part of this cluster | -| [aurora\_mysql\_v2\_cluster\_port](#output\_aurora\_mysql\_v2\_cluster\_port) | The database port | -| [aurora\_mysql\_v2\_cluster\_reader\_endpoint](#output\_aurora\_mysql\_v2\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | -| [aurora\_mysql\_v2\_cluster\_resource\_id](#output\_aurora\_mysql\_v2\_cluster\_resource\_id) | The RDS Cluster Resource ID | -| [aurora\_mysql\_v2\_cluster\_role\_associations](#output\_aurora\_mysql\_v2\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | -| [aurora\_mysql\_v2\_db\_subnet\_group\_name](#output\_aurora\_mysql\_v2\_db\_subnet\_group\_name) | The db subnet group name | -| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_arn](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | -| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_name](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | -| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | -| [aurora\_mysql\_v2\_security\_group\_id](#output\_aurora\_mysql\_v2\_security\_group\_id) | The security group ID of the cluster | -| [aurora\_postgresql\_v2\_additional\_cluster\_endpoints](#output\_aurora\_postgresql\_v2\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | -| [aurora\_postgresql\_v2\_cluster\_arn](#output\_aurora\_postgresql\_v2\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | -| [aurora\_postgresql\_v2\_cluster\_database\_name](#output\_aurora\_postgresql\_v2\_cluster\_database\_name) | Name for an automatically created database on cluster creation | -| [aurora\_postgresql\_v2\_cluster\_endpoint](#output\_aurora\_postgresql\_v2\_cluster\_endpoint) | Writer endpoint for the cluster | -| [aurora\_postgresql\_v2\_cluster\_engine\_version\_actual](#output\_aurora\_postgresql\_v2\_cluster\_engine\_version\_actual) | The running version of the cluster database | -| [aurora\_postgresql\_v2\_cluster\_hosted\_zone\_id](#output\_aurora\_postgresql\_v2\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | -| [aurora\_postgresql\_v2\_cluster\_id](#output\_aurora\_postgresql\_v2\_cluster\_id) | The RDS Cluster Identifier | -| [aurora\_postgresql\_v2\_cluster\_instances](#output\_aurora\_postgresql\_v2\_cluster\_instances) | A map of cluster instances and their attributes | -| [aurora\_postgresql\_v2\_cluster\_master\_password](#output\_aurora\_postgresql\_v2\_cluster\_master\_password) | The database master password | -| [aurora\_postgresql\_v2\_cluster\_master\_username](#output\_aurora\_postgresql\_v2\_cluster\_master\_username) | The database master username | -| [aurora\_postgresql\_v2\_cluster\_members](#output\_aurora\_postgresql\_v2\_cluster\_members) | List of RDS Instances that are a part of this cluster | -| [aurora\_postgresql\_v2\_cluster\_port](#output\_aurora\_postgresql\_v2\_cluster\_port) | The database port | -| [aurora\_postgresql\_v2\_cluster\_reader\_endpoint](#output\_aurora\_postgresql\_v2\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | -| [aurora\_postgresql\_v2\_cluster\_resource\_id](#output\_aurora\_postgresql\_v2\_cluster\_resource\_id) | The RDS Cluster Resource ID | -| [aurora\_postgresql\_v2\_cluster\_role\_associations](#output\_aurora\_postgresql\_v2\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | -| [aurora\_postgresql\_v2\_db\_subnet\_group\_name](#output\_aurora\_postgresql\_v2\_db\_subnet\_group\_name) | The db subnet group name | -| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_arn](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | -| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_name](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | -| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | -| [aurora\_postgresql\_v2\_security\_group\_id](#output\_aurora\_postgresql\_v2\_security\_group\_id) | The security group ID of the cluster | -| [aurora\_postresql\_v2\_cloudwatch\_log\_groups](#output\_aurora\_postresql\_v2\_cloudwatch\_log\_groups) | Map of CloudWatch log groups created and their attributes | -| [mysql\_additional\_cluster\_endpoints](#output\_mysql\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | -| [mysql\_cluster\_arn](#output\_mysql\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | -| [mysql\_cluster\_database\_name](#output\_mysql\_cluster\_database\_name) | Name for an automatically created database on cluster creation | -| [mysql\_cluster\_endpoint](#output\_mysql\_cluster\_endpoint) | Writer endpoint for the cluster | -| [mysql\_cluster\_engine\_version\_actual](#output\_mysql\_cluster\_engine\_version\_actual) | The running version of the cluster database | -| [mysql\_cluster\_hosted\_zone\_id](#output\_mysql\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | -| [mysql\_cluster\_id](#output\_mysql\_cluster\_id) | The RDS Cluster Identifier | -| [mysql\_cluster\_instances](#output\_mysql\_cluster\_instances) | A map of cluster instances and their attributes | -| [mysql\_cluster\_master\_password](#output\_mysql\_cluster\_master\_password) | The database master password | -| [mysql\_cluster\_master\_username](#output\_mysql\_cluster\_master\_username) | The database master username | -| [mysql\_cluster\_members](#output\_mysql\_cluster\_members) | List of RDS Instances that are a part of this cluster | -| [mysql\_cluster\_port](#output\_mysql\_cluster\_port) | The database port | -| [mysql\_cluster\_reader\_endpoint](#output\_mysql\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | -| [mysql\_cluster\_resource\_id](#output\_mysql\_cluster\_resource\_id) | The RDS Cluster Resource ID | -| [mysql\_cluster\_role\_associations](#output\_mysql\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | -| [mysql\_db\_subnet\_group\_name](#output\_mysql\_db\_subnet\_group\_name) | The db subnet group name | -| [mysql\_enhanced\_monitoring\_iam\_role\_arn](#output\_mysql\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | -| [mysql\_enhanced\_monitoring\_iam\_role\_name](#output\_mysql\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | -| [mysql\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_mysql\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | -| [mysql\_security\_group\_id](#output\_mysql\_security\_group\_id) | The security group ID of the cluster | -| [postgresql\_additional\_cluster\_endpoints](#output\_postgresql\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | -| [postgresql\_cluster\_arn](#output\_postgresql\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | -| [postgresql\_cluster\_database\_name](#output\_postgresql\_cluster\_database\_name) | Name for an automatically created database on cluster creation | -| [postgresql\_cluster\_endpoint](#output\_postgresql\_cluster\_endpoint) | Writer endpoint for the cluster | -| [postgresql\_cluster\_engine\_version\_actual](#output\_postgresql\_cluster\_engine\_version\_actual) | The running version of the cluster database | -| [postgresql\_cluster\_hosted\_zone\_id](#output\_postgresql\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | -| [postgresql\_cluster\_id](#output\_postgresql\_cluster\_id) | The RDS Cluster Identifier | -| [postgresql\_cluster\_instances](#output\_postgresql\_cluster\_instances) | A map of cluster instances and their attributes | -| [postgresql\_cluster\_master\_password](#output\_postgresql\_cluster\_master\_password) | The database master password | -| [postgresql\_cluster\_master\_username](#output\_postgresql\_cluster\_master\_username) | The database master username | -| [postgresql\_cluster\_members](#output\_postgresql\_cluster\_members) | List of RDS Instances that are a part of this cluster | -| [postgresql\_cluster\_port](#output\_postgresql\_cluster\_port) | The database port | -| [postgresql\_cluster\_reader\_endpoint](#output\_postgresql\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | -| [postgresql\_cluster\_resource\_id](#output\_postgresql\_cluster\_resource\_id) | The RDS Cluster Resource ID | -| [postgresql\_cluster\_role\_associations](#output\_postgresql\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | -| [postgresql\_db\_subnet\_group\_name](#output\_postgresql\_db\_subnet\_group\_name) | The db subnet group name | -| [postgresql\_enhanced\_monitoring\_iam\_role\_arn](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | -| [postgresql\_enhanced\_monitoring\_iam\_role\_name](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | -| [postgresql\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | -| [postgresql\_security\_group\_id](#output\_postgresql\_security\_group\_id) | The security group ID of the cluster | +No outputs. diff --git a/examples/serverless/main.tf b/examples/serverless/main.tf index f84d050e..04ca33fb 100644 --- a/examples/serverless/main.tf +++ b/examples/serverless/main.tf @@ -153,7 +153,7 @@ module "aurora_mysql_v2" { data "aws_rds_engine_version" "postgresql" { engine = "aurora-postgresql" - version = "14.8" + version = "14.12" } module "aurora_postgresql_v2" { @@ -182,8 +182,9 @@ module "aurora_postgresql_v2" { enable_http_endpoint = true serverlessv2_scaling_configuration = { - min_capacity = 2 - max_capacity = 10 + min_capacity = 0 + max_capacity = 10 + seconds_until_auto_pause = 3600 } instance_class = "db.serverless" diff --git a/examples/serverless/outputs.tf b/examples/serverless/outputs.tf index 34eed051..d9d84516 100644 --- a/examples/serverless/outputs.tf +++ b/examples/serverless/outputs.tf @@ -1,462 +1,462 @@ -################################################################################ -# RDS Aurora Module - PostgreSQL -################################################################################ - -# aws_db_subnet_group -output "postgresql_db_subnet_group_name" { - description = "The db subnet group name" - value = module.aurora_postgresql.db_subnet_group_name -} - -# aws_rds_cluster -output "postgresql_cluster_arn" { - description = "Amazon Resource Name (ARN) of cluster" - value = module.aurora_postgresql.cluster_arn -} - -output "postgresql_cluster_id" { - description = "The RDS Cluster Identifier" - value = module.aurora_postgresql.cluster_id -} - -output "postgresql_cluster_resource_id" { - description = "The RDS Cluster Resource ID" - value = module.aurora_postgresql.cluster_resource_id -} - -output "postgresql_cluster_members" { - description = "List of RDS Instances that are a part of this cluster" - value = module.aurora_postgresql.cluster_members -} - -output "postgresql_cluster_endpoint" { - description = "Writer endpoint for the cluster" - value = module.aurora_postgresql.cluster_endpoint -} - -output "postgresql_cluster_reader_endpoint" { - description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" - value = module.aurora_postgresql.cluster_reader_endpoint -} - -output "postgresql_cluster_engine_version_actual" { - description = "The running version of the cluster database" - value = module.aurora_postgresql.cluster_engine_version_actual -} - -# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -output "postgresql_cluster_database_name" { - description = "Name for an automatically created database on cluster creation" - value = module.aurora_postgresql.cluster_database_name -} - -output "postgresql_cluster_port" { - description = "The database port" - value = module.aurora_postgresql.cluster_port -} - -output "postgresql_cluster_master_password" { - description = "The database master password" - value = module.aurora_postgresql.cluster_master_password - sensitive = true -} - -output "postgresql_cluster_master_username" { - description = "The database master username" - value = module.aurora_postgresql.cluster_master_username - sensitive = true -} - -output "postgresql_cluster_hosted_zone_id" { - description = "The Route53 Hosted Zone ID of the endpoint" - value = module.aurora_postgresql.cluster_hosted_zone_id -} - -# aws_rds_cluster_instances -output "postgresql_cluster_instances" { - description = "A map of cluster instances and their attributes" - value = module.aurora_postgresql.cluster_instances -} - -# aws_rds_cluster_endpoint -output "postgresql_additional_cluster_endpoints" { - description = "A map of additional cluster endpoints and their attributes" - value = module.aurora_postgresql.additional_cluster_endpoints -} - -# aws_rds_cluster_role_association -output "postgresql_cluster_role_associations" { - description = "A map of IAM roles associated with the cluster and their attributes" - value = module.aurora_postgresql.cluster_role_associations -} - -# Enhanced monitoring role -output "postgresql_enhanced_monitoring_iam_role_name" { - description = "The name of the enhanced monitoring role" - value = module.aurora_postgresql.enhanced_monitoring_iam_role_name -} - -output "postgresql_enhanced_monitoring_iam_role_arn" { - description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" - value = module.aurora_postgresql.enhanced_monitoring_iam_role_arn -} - -output "postgresql_enhanced_monitoring_iam_role_unique_id" { - description = "Stable and unique string identifying the enhanced monitoring role" - value = module.aurora_postgresql.enhanced_monitoring_iam_role_unique_id -} - -# aws_security_group -output "postgresql_security_group_id" { - description = "The security group ID of the cluster" - value = module.aurora_postgresql.security_group_id -} - -################################################################################ -# RDS Aurora Module - MySQL -################################################################################ - -# aws_db_subnet_group -output "mysql_db_subnet_group_name" { - description = "The db subnet group name" - value = module.aurora_mysql.db_subnet_group_name -} - -# aws_rds_cluster -output "mysql_cluster_arn" { - description = "Amazon Resource Name (ARN) of cluster" - value = module.aurora_mysql.cluster_arn -} - -output "mysql_cluster_id" { - description = "The RDS Cluster Identifier" - value = module.aurora_mysql.cluster_id -} - -output "mysql_cluster_resource_id" { - description = "The RDS Cluster Resource ID" - value = module.aurora_mysql.cluster_resource_id -} - -output "mysql_cluster_members" { - description = "List of RDS Instances that are a part of this cluster" - value = module.aurora_mysql.cluster_members -} - -output "mysql_cluster_endpoint" { - description = "Writer endpoint for the cluster" - value = module.aurora_mysql.cluster_endpoint -} - -output "mysql_cluster_reader_endpoint" { - description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" - value = module.aurora_mysql.cluster_reader_endpoint -} - -output "mysql_cluster_engine_version_actual" { - description = "The running version of the cluster database" - value = module.aurora_mysql.cluster_engine_version_actual -} - -# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -output "mysql_cluster_database_name" { - description = "Name for an automatically created database on cluster creation" - value = module.aurora_mysql.cluster_database_name -} - -output "mysql_cluster_port" { - description = "The database port" - value = module.aurora_mysql.cluster_port -} - -output "mysql_cluster_master_password" { - description = "The database master password" - value = module.aurora_mysql.cluster_master_password - sensitive = true -} - -output "mysql_cluster_master_username" { - description = "The database master username" - value = module.aurora_mysql.cluster_master_username - sensitive = true -} - -output "mysql_cluster_hosted_zone_id" { - description = "The Route53 Hosted Zone ID of the endpoint" - value = module.aurora_mysql.cluster_hosted_zone_id -} - -# aws_rds_cluster_instances -output "mysql_cluster_instances" { - description = "A map of cluster instances and their attributes" - value = module.aurora_mysql.cluster_instances -} - -# aws_rds_cluster_endpoint -output "mysql_additional_cluster_endpoints" { - description = "A map of additional cluster endpoints and their attributes" - value = module.aurora_mysql.additional_cluster_endpoints -} - -# aws_rds_cluster_role_association -output "mysql_cluster_role_associations" { - description = "A map of IAM roles associated with the cluster and their attributes" - value = module.aurora_mysql.cluster_role_associations -} - -# Enhanced monitoring role -output "mysql_enhanced_monitoring_iam_role_name" { - description = "The name of the enhanced monitoring role" - value = module.aurora_mysql.enhanced_monitoring_iam_role_name -} - -output "mysql_enhanced_monitoring_iam_role_arn" { - description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" - value = module.aurora_mysql.enhanced_monitoring_iam_role_arn -} - -output "mysql_enhanced_monitoring_iam_role_unique_id" { - description = "Stable and unique string identifying the enhanced monitoring role" - value = module.aurora_mysql.enhanced_monitoring_iam_role_unique_id -} - -# aws_security_group -output "mysql_security_group_id" { - description = "The security group ID of the cluster" - value = module.aurora_mysql.security_group_id -} - - -################################################################################ -# RDS Aurora Module - MySQL Serverless V2 -################################################################################ - -# aws_db_subnet_group -output "aurora_mysql_v2_db_subnet_group_name" { - description = "The db subnet group name" - value = module.aurora_mysql_v2.db_subnet_group_name -} - -# aws_rds_cluster -output "aurora_mysql_v2_cluster_arn" { - description = "Amazon Resource Name (ARN) of cluster" - value = module.aurora_mysql_v2.cluster_arn -} - -output "aurora_mysql_v2_cluster_id" { - description = "The RDS Cluster Identifier" - value = module.aurora_mysql_v2.cluster_id -} - -output "aurora_mysql_v2_cluster_resource_id" { - description = "The RDS Cluster Resource ID" - value = module.aurora_mysql_v2.cluster_resource_id -} - -output "aurora_mysql_v2_cluster_members" { - description = "List of RDS Instances that are a part of this cluster" - value = module.aurora_mysql_v2.cluster_members -} - -output "aurora_mysql_v2_cluster_endpoint" { - description = "Writer endpoint for the cluster" - value = module.aurora_mysql_v2.cluster_endpoint -} - -output "aurora_mysql_v2_cluster_reader_endpoint" { - description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" - value = module.aurora_mysql_v2.cluster_reader_endpoint -} - -output "aurora_mysql_v2_cluster_engine_version_actual" { - description = "The running version of the cluster database" - value = module.aurora_mysql_v2.cluster_engine_version_actual -} - -# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -output "aurora_mysql_v2_cluster_database_name" { - description = "Name for an automatically created database on cluster creation" - value = module.aurora_mysql_v2.cluster_database_name -} - -output "aurora_mysql_v2_cluster_port" { - description = "The database port" - value = module.aurora_mysql_v2.cluster_port -} - -output "aurora_mysql_v2_cluster_master_password" { - description = "The database master password" - value = module.aurora_mysql_v2.cluster_master_password - sensitive = true -} - -output "aurora_mysql_v2_cluster_master_username" { - description = "The database master username" - value = module.aurora_mysql_v2.cluster_master_username - sensitive = true -} - -output "aurora_mysql_v2_cluster_hosted_zone_id" { - description = "The Route53 Hosted Zone ID of the endpoint" - value = module.aurora_mysql_v2.cluster_hosted_zone_id -} - -# aws_rds_cluster_instances -output "aurora_mysql_v2_cluster_instances" { - description = "A map of cluster instances and their attributes" - value = module.aurora_mysql_v2.cluster_instances -} - -# aws_rds_cluster_endpoint -output "aurora_mysql_v2_additional_cluster_endpoints" { - description = "A map of additional cluster endpoints and their attributes" - value = module.aurora_mysql_v2.additional_cluster_endpoints -} - -# aws_rds_cluster_role_association -output "aurora_mysql_v2_cluster_role_associations" { - description = "A map of IAM roles associated with the cluster and their attributes" - value = module.aurora_mysql_v2.cluster_role_associations -} - -# Enhanced monitoring role -output "aurora_mysql_v2_enhanced_monitoring_iam_role_name" { - description = "The name of the enhanced monitoring role" - value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_name -} - -output "aurora_mysql_v2_enhanced_monitoring_iam_role_arn" { - description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" - value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_arn -} - -output "aurora_mysql_v2_enhanced_monitoring_iam_role_unique_id" { - description = "Stable and unique string identifying the enhanced monitoring role" - value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_unique_id -} - -# aws_security_group -output "aurora_mysql_v2_security_group_id" { - description = "The security group ID of the cluster" - value = module.aurora_mysql_v2.security_group_id -} - -################################################################################ -# RDS Aurora Module - PostgreSQL Serverless V2 -################################################################################ - -# aws_db_subnet_group -output "aurora_postgresql_v2_db_subnet_group_name" { - description = "The db subnet group name" - value = module.aurora_postgresql_v2.db_subnet_group_name -} - -# aws_rds_cluster -output "aurora_postgresql_v2_cluster_arn" { - description = "Amazon Resource Name (ARN) of cluster" - value = module.aurora_postgresql_v2.cluster_arn -} - -output "aurora_postgresql_v2_cluster_id" { - description = "The RDS Cluster Identifier" - value = module.aurora_postgresql_v2.cluster_id -} - -output "aurora_postgresql_v2_cluster_resource_id" { - description = "The RDS Cluster Resource ID" - value = module.aurora_postgresql_v2.cluster_resource_id -} - -output "aurora_postgresql_v2_cluster_members" { - description = "List of RDS Instances that are a part of this cluster" - value = module.aurora_postgresql_v2.cluster_members -} - -output "aurora_postgresql_v2_cluster_endpoint" { - description = "Writer endpoint for the cluster" - value = module.aurora_postgresql_v2.cluster_endpoint -} - -output "aurora_postgresql_v2_cluster_reader_endpoint" { - description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" - value = module.aurora_postgresql_v2.cluster_reader_endpoint -} - -output "aurora_postgresql_v2_cluster_engine_version_actual" { - description = "The running version of the cluster database" - value = module.aurora_postgresql_v2.cluster_engine_version_actual -} - -# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -output "aurora_postgresql_v2_cluster_database_name" { - description = "Name for an automatically created database on cluster creation" - value = module.aurora_postgresql_v2.cluster_database_name -} - -output "aurora_postgresql_v2_cluster_port" { - description = "The database port" - value = module.aurora_postgresql_v2.cluster_port -} - -output "aurora_postgresql_v2_cluster_master_password" { - description = "The database master password" - value = module.aurora_postgresql_v2.cluster_master_password - sensitive = true -} - -output "aurora_postgresql_v2_cluster_master_username" { - description = "The database master username" - value = module.aurora_postgresql_v2.cluster_master_username - sensitive = true -} - -output "aurora_postgresql_v2_cluster_hosted_zone_id" { - description = "The Route53 Hosted Zone ID of the endpoint" - value = module.aurora_postgresql_v2.cluster_hosted_zone_id -} - -# aws_rds_cluster_instances -output "aurora_postgresql_v2_cluster_instances" { - description = "A map of cluster instances and their attributes" - value = module.aurora_postgresql_v2.cluster_instances -} - -# aws_rds_cluster_endpoint -output "aurora_postgresql_v2_additional_cluster_endpoints" { - description = "A map of additional cluster endpoints and their attributes" - value = module.aurora_postgresql_v2.additional_cluster_endpoints -} - -# aws_rds_cluster_role_association -output "aurora_postgresql_v2_cluster_role_associations" { - description = "A map of IAM roles associated with the cluster and their attributes" - value = module.aurora_postgresql_v2.cluster_role_associations -} - -# Enhanced monitoring role -output "aurora_postgresql_v2_enhanced_monitoring_iam_role_name" { - description = "The name of the enhanced monitoring role" - value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_name -} - -output "aurora_postgresql_v2_enhanced_monitoring_iam_role_arn" { - description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" - value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_arn -} - -output "aurora_postgresql_v2_enhanced_monitoring_iam_role_unique_id" { - description = "Stable and unique string identifying the enhanced monitoring role" - value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_unique_id -} - -# aws_security_group -output "aurora_postgresql_v2_security_group_id" { - description = "The security group ID of the cluster" - value = module.aurora_postgresql_v2.security_group_id -} - -# Cloudwatch Log groups -output "aurora_postresql_v2_cloudwatch_log_groups" { - description = "Map of CloudWatch log groups created and their attributes" - value = module.aurora_postgresql_v2.db_cluster_cloudwatch_log_groups -} +################################################################################# +## RDS Aurora Module - PostgreSQL +################################################################################# +# +## aws_db_subnet_group +#output "postgresql_db_subnet_group_name" { +# description = "The db subnet group name" +# value = module.aurora_postgresql.db_subnet_group_name +#} +# +## aws_rds_cluster +#output "postgresql_cluster_arn" { +# description = "Amazon Resource Name (ARN) of cluster" +# value = module.aurora_postgresql.cluster_arn +#} +# +#output "postgresql_cluster_id" { +# description = "The RDS Cluster Identifier" +# value = module.aurora_postgresql.cluster_id +#} +# +#output "postgresql_cluster_resource_id" { +# description = "The RDS Cluster Resource ID" +# value = module.aurora_postgresql.cluster_resource_id +#} +# +#output "postgresql_cluster_members" { +# description = "List of RDS Instances that are a part of this cluster" +# value = module.aurora_postgresql.cluster_members +#} +# +#output "postgresql_cluster_endpoint" { +# description = "Writer endpoint for the cluster" +# value = module.aurora_postgresql.cluster_endpoint +#} +# +#output "postgresql_cluster_reader_endpoint" { +# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" +# value = module.aurora_postgresql.cluster_reader_endpoint +#} +# +#output "postgresql_cluster_engine_version_actual" { +# description = "The running version of the cluster database" +# value = module.aurora_postgresql.cluster_engine_version_actual +#} +# +## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +#output "postgresql_cluster_database_name" { +# description = "Name for an automatically created database on cluster creation" +# value = module.aurora_postgresql.cluster_database_name +#} +# +#output "postgresql_cluster_port" { +# description = "The database port" +# value = module.aurora_postgresql.cluster_port +#} +# +#output "postgresql_cluster_master_password" { +# description = "The database master password" +# value = module.aurora_postgresql.cluster_master_password +# sensitive = true +#} +# +#output "postgresql_cluster_master_username" { +# description = "The database master username" +# value = module.aurora_postgresql.cluster_master_username +# sensitive = true +#} +# +#output "postgresql_cluster_hosted_zone_id" { +# description = "The Route53 Hosted Zone ID of the endpoint" +# value = module.aurora_postgresql.cluster_hosted_zone_id +#} +# +## aws_rds_cluster_instances +#output "postgresql_cluster_instances" { +# description = "A map of cluster instances and their attributes" +# value = module.aurora_postgresql.cluster_instances +#} +# +## aws_rds_cluster_endpoint +#output "postgresql_additional_cluster_endpoints" { +# description = "A map of additional cluster endpoints and their attributes" +# value = module.aurora_postgresql.additional_cluster_endpoints +#} +# +## aws_rds_cluster_role_association +#output "postgresql_cluster_role_associations" { +# description = "A map of IAM roles associated with the cluster and their attributes" +# value = module.aurora_postgresql.cluster_role_associations +#} +# +## Enhanced monitoring role +#output "postgresql_enhanced_monitoring_iam_role_name" { +# description = "The name of the enhanced monitoring role" +# value = module.aurora_postgresql.enhanced_monitoring_iam_role_name +#} +# +#output "postgresql_enhanced_monitoring_iam_role_arn" { +# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" +# value = module.aurora_postgresql.enhanced_monitoring_iam_role_arn +#} +# +#output "postgresql_enhanced_monitoring_iam_role_unique_id" { +# description = "Stable and unique string identifying the enhanced monitoring role" +# value = module.aurora_postgresql.enhanced_monitoring_iam_role_unique_id +#} +# +## aws_security_group +#output "postgresql_security_group_id" { +# description = "The security group ID of the cluster" +# value = module.aurora_postgresql.security_group_id +#} +# +################################################################################# +## RDS Aurora Module - MySQL +################################################################################# +# +## aws_db_subnet_group +#output "mysql_db_subnet_group_name" { +# description = "The db subnet group name" +# value = module.aurora_mysql.db_subnet_group_name +#} +# +## aws_rds_cluster +#output "mysql_cluster_arn" { +# description = "Amazon Resource Name (ARN) of cluster" +# value = module.aurora_mysql.cluster_arn +#} +# +#output "mysql_cluster_id" { +# description = "The RDS Cluster Identifier" +# value = module.aurora_mysql.cluster_id +#} +# +#output "mysql_cluster_resource_id" { +# description = "The RDS Cluster Resource ID" +# value = module.aurora_mysql.cluster_resource_id +#} +# +#output "mysql_cluster_members" { +# description = "List of RDS Instances that are a part of this cluster" +# value = module.aurora_mysql.cluster_members +#} +# +#output "mysql_cluster_endpoint" { +# description = "Writer endpoint for the cluster" +# value = module.aurora_mysql.cluster_endpoint +#} +# +#output "mysql_cluster_reader_endpoint" { +# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" +# value = module.aurora_mysql.cluster_reader_endpoint +#} +# +#output "mysql_cluster_engine_version_actual" { +# description = "The running version of the cluster database" +# value = module.aurora_mysql.cluster_engine_version_actual +#} +# +## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +#output "mysql_cluster_database_name" { +# description = "Name for an automatically created database on cluster creation" +# value = module.aurora_mysql.cluster_database_name +#} +# +#output "mysql_cluster_port" { +# description = "The database port" +# value = module.aurora_mysql.cluster_port +#} +# +#output "mysql_cluster_master_password" { +# description = "The database master password" +# value = module.aurora_mysql.cluster_master_password +# sensitive = true +#} +# +#output "mysql_cluster_master_username" { +# description = "The database master username" +# value = module.aurora_mysql.cluster_master_username +# sensitive = true +#} +# +#output "mysql_cluster_hosted_zone_id" { +# description = "The Route53 Hosted Zone ID of the endpoint" +# value = module.aurora_mysql.cluster_hosted_zone_id +#} +# +## aws_rds_cluster_instances +#output "mysql_cluster_instances" { +# description = "A map of cluster instances and their attributes" +# value = module.aurora_mysql.cluster_instances +#} +# +## aws_rds_cluster_endpoint +#output "mysql_additional_cluster_endpoints" { +# description = "A map of additional cluster endpoints and their attributes" +# value = module.aurora_mysql.additional_cluster_endpoints +#} +# +## aws_rds_cluster_role_association +#output "mysql_cluster_role_associations" { +# description = "A map of IAM roles associated with the cluster and their attributes" +# value = module.aurora_mysql.cluster_role_associations +#} +# +## Enhanced monitoring role +#output "mysql_enhanced_monitoring_iam_role_name" { +# description = "The name of the enhanced monitoring role" +# value = module.aurora_mysql.enhanced_monitoring_iam_role_name +#} +# +#output "mysql_enhanced_monitoring_iam_role_arn" { +# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" +# value = module.aurora_mysql.enhanced_monitoring_iam_role_arn +#} +# +#output "mysql_enhanced_monitoring_iam_role_unique_id" { +# description = "Stable and unique string identifying the enhanced monitoring role" +# value = module.aurora_mysql.enhanced_monitoring_iam_role_unique_id +#} +# +## aws_security_group +#output "mysql_security_group_id" { +# description = "The security group ID of the cluster" +# value = module.aurora_mysql.security_group_id +#} +# +# +################################################################################# +## RDS Aurora Module - MySQL Serverless V2 +################################################################################# +# +## aws_db_subnet_group +#output "aurora_mysql_v2_db_subnet_group_name" { +# description = "The db subnet group name" +# value = module.aurora_mysql_v2.db_subnet_group_name +#} +# +## aws_rds_cluster +#output "aurora_mysql_v2_cluster_arn" { +# description = "Amazon Resource Name (ARN) of cluster" +# value = module.aurora_mysql_v2.cluster_arn +#} +# +#output "aurora_mysql_v2_cluster_id" { +# description = "The RDS Cluster Identifier" +# value = module.aurora_mysql_v2.cluster_id +#} +# +#output "aurora_mysql_v2_cluster_resource_id" { +# description = "The RDS Cluster Resource ID" +# value = module.aurora_mysql_v2.cluster_resource_id +#} +# +#output "aurora_mysql_v2_cluster_members" { +# description = "List of RDS Instances that are a part of this cluster" +# value = module.aurora_mysql_v2.cluster_members +#} +# +#output "aurora_mysql_v2_cluster_endpoint" { +# description = "Writer endpoint for the cluster" +# value = module.aurora_mysql_v2.cluster_endpoint +#} +# +#output "aurora_mysql_v2_cluster_reader_endpoint" { +# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" +# value = module.aurora_mysql_v2.cluster_reader_endpoint +#} +# +#output "aurora_mysql_v2_cluster_engine_version_actual" { +# description = "The running version of the cluster database" +# value = module.aurora_mysql_v2.cluster_engine_version_actual +#} +# +## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +#output "aurora_mysql_v2_cluster_database_name" { +# description = "Name for an automatically created database on cluster creation" +# value = module.aurora_mysql_v2.cluster_database_name +#} +# +#output "aurora_mysql_v2_cluster_port" { +# description = "The database port" +# value = module.aurora_mysql_v2.cluster_port +#} +# +#output "aurora_mysql_v2_cluster_master_password" { +# description = "The database master password" +# value = module.aurora_mysql_v2.cluster_master_password +# sensitive = true +#} +# +#output "aurora_mysql_v2_cluster_master_username" { +# description = "The database master username" +# value = module.aurora_mysql_v2.cluster_master_username +# sensitive = true +#} +# +#output "aurora_mysql_v2_cluster_hosted_zone_id" { +# description = "The Route53 Hosted Zone ID of the endpoint" +# value = module.aurora_mysql_v2.cluster_hosted_zone_id +#} +# +## aws_rds_cluster_instances +#output "aurora_mysql_v2_cluster_instances" { +# description = "A map of cluster instances and their attributes" +# value = module.aurora_mysql_v2.cluster_instances +#} +# +## aws_rds_cluster_endpoint +#output "aurora_mysql_v2_additional_cluster_endpoints" { +# description = "A map of additional cluster endpoints and their attributes" +# value = module.aurora_mysql_v2.additional_cluster_endpoints +#} +# +## aws_rds_cluster_role_association +#output "aurora_mysql_v2_cluster_role_associations" { +# description = "A map of IAM roles associated with the cluster and their attributes" +# value = module.aurora_mysql_v2.cluster_role_associations +#} +# +## Enhanced monitoring role +#output "aurora_mysql_v2_enhanced_monitoring_iam_role_name" { +# description = "The name of the enhanced monitoring role" +# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_name +#} +# +#output "aurora_mysql_v2_enhanced_monitoring_iam_role_arn" { +# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" +# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_arn +#} +# +#output "aurora_mysql_v2_enhanced_monitoring_iam_role_unique_id" { +# description = "Stable and unique string identifying the enhanced monitoring role" +# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_unique_id +#} +# +## aws_security_group +#output "aurora_mysql_v2_security_group_id" { +# description = "The security group ID of the cluster" +# value = module.aurora_mysql_v2.security_group_id +#} +# +################################################################################# +## RDS Aurora Module - PostgreSQL Serverless V2 +################################################################################# +# +## aws_db_subnet_group +#output "aurora_postgresql_v2_db_subnet_group_name" { +# description = "The db subnet group name" +# value = module.aurora_postgresql_v2.db_subnet_group_name +#} +# +## aws_rds_cluster +#output "aurora_postgresql_v2_cluster_arn" { +# description = "Amazon Resource Name (ARN) of cluster" +# value = module.aurora_postgresql_v2.cluster_arn +#} +# +#output "aurora_postgresql_v2_cluster_id" { +# description = "The RDS Cluster Identifier" +# value = module.aurora_postgresql_v2.cluster_id +#} +# +#output "aurora_postgresql_v2_cluster_resource_id" { +# description = "The RDS Cluster Resource ID" +# value = module.aurora_postgresql_v2.cluster_resource_id +#} +# +#output "aurora_postgresql_v2_cluster_members" { +# description = "List of RDS Instances that are a part of this cluster" +# value = module.aurora_postgresql_v2.cluster_members +#} +# +#output "aurora_postgresql_v2_cluster_endpoint" { +# description = "Writer endpoint for the cluster" +# value = module.aurora_postgresql_v2.cluster_endpoint +#} +# +#output "aurora_postgresql_v2_cluster_reader_endpoint" { +# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" +# value = module.aurora_postgresql_v2.cluster_reader_endpoint +#} +# +#output "aurora_postgresql_v2_cluster_engine_version_actual" { +# description = "The running version of the cluster database" +# value = module.aurora_postgresql_v2.cluster_engine_version_actual +#} +# +## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +#output "aurora_postgresql_v2_cluster_database_name" { +# description = "Name for an automatically created database on cluster creation" +# value = module.aurora_postgresql_v2.cluster_database_name +#} +# +#output "aurora_postgresql_v2_cluster_port" { +# description = "The database port" +# value = module.aurora_postgresql_v2.cluster_port +#} +# +#output "aurora_postgresql_v2_cluster_master_password" { +# description = "The database master password" +# value = module.aurora_postgresql_v2.cluster_master_password +# sensitive = true +#} +# +#output "aurora_postgresql_v2_cluster_master_username" { +# description = "The database master username" +# value = module.aurora_postgresql_v2.cluster_master_username +# sensitive = true +#} +# +#output "aurora_postgresql_v2_cluster_hosted_zone_id" { +# description = "The Route53 Hosted Zone ID of the endpoint" +# value = module.aurora_postgresql_v2.cluster_hosted_zone_id +#} +# +## aws_rds_cluster_instances +#output "aurora_postgresql_v2_cluster_instances" { +# description = "A map of cluster instances and their attributes" +# value = module.aurora_postgresql_v2.cluster_instances +#} +# +## aws_rds_cluster_endpoint +#output "aurora_postgresql_v2_additional_cluster_endpoints" { +# description = "A map of additional cluster endpoints and their attributes" +# value = module.aurora_postgresql_v2.additional_cluster_endpoints +#} +# +## aws_rds_cluster_role_association +#output "aurora_postgresql_v2_cluster_role_associations" { +# description = "A map of IAM roles associated with the cluster and their attributes" +# value = module.aurora_postgresql_v2.cluster_role_associations +#} +# +## Enhanced monitoring role +#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_name" { +# description = "The name of the enhanced monitoring role" +# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_name +#} +# +#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_arn" { +# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" +# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_arn +#} +# +#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_unique_id" { +# description = "Stable and unique string identifying the enhanced monitoring role" +# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_unique_id +#} +# +## aws_security_group +#output "aurora_postgresql_v2_security_group_id" { +# description = "The security group ID of the cluster" +# value = module.aurora_postgresql_v2.security_group_id +#} +# +## Cloudwatch Log groups +#output "aurora_postresql_v2_cloudwatch_log_groups" { +# description = "Map of CloudWatch log groups created and their attributes" +# value = module.aurora_postgresql_v2.db_cluster_cloudwatch_log_groups +#} diff --git a/examples/serverless/versions.tf b/examples/serverless/versions.tf index a66be2a3..d31e0c40 100644 --- a/examples/serverless/versions.tf +++ b/examples/serverless/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } random = { source = "hashicorp/random" diff --git a/main.tf b/main.tf index 364e1dc6..1cb74426 100644 --- a/main.tf +++ b/main.tf @@ -127,8 +127,9 @@ resource "aws_rds_cluster" "this" { for_each = length(var.serverlessv2_scaling_configuration) > 0 && var.engine_mode == "provisioned" ? [var.serverlessv2_scaling_configuration] : [] content { - max_capacity = serverlessv2_scaling_configuration.value.max_capacity - min_capacity = serverlessv2_scaling_configuration.value.min_capacity + max_capacity = serverlessv2_scaling_configuration.value.max_capacity + min_capacity = serverlessv2_scaling_configuration.value.min_capacity + seconds_until_auto_pause = try(serverlessv2_scaling_configuration.value.seconds_until_auto_pause, null) } } diff --git a/versions.tf b/versions.tf index 264f62f5..4969d64d 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.64" + version = ">= 5.81" } } } From fa40bff250f5f0001157fe34f5ccf25b5e94282b Mon Sep 17 00:00:00 2001 From: magreenbaum Date: Fri, 13 Dec 2024 23:57:47 -0500 Subject: [PATCH 2/2] revert --- examples/serverless/README.md | 84 ++- examples/serverless/outputs.tf | 924 ++++++++++++++++----------------- 2 files changed, 545 insertions(+), 463 deletions(-) diff --git a/examples/serverless/README.md b/examples/serverless/README.md index 90189a7c..9016a068 100644 --- a/examples/serverless/README.md +++ b/examples/serverless/README.md @@ -54,5 +54,87 @@ No inputs. ## Outputs -No outputs. +| Name | Description | +|------|-------------| +| [aurora\_mysql\_v2\_additional\_cluster\_endpoints](#output\_aurora\_mysql\_v2\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | +| [aurora\_mysql\_v2\_cluster\_arn](#output\_aurora\_mysql\_v2\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | +| [aurora\_mysql\_v2\_cluster\_database\_name](#output\_aurora\_mysql\_v2\_cluster\_database\_name) | Name for an automatically created database on cluster creation | +| [aurora\_mysql\_v2\_cluster\_endpoint](#output\_aurora\_mysql\_v2\_cluster\_endpoint) | Writer endpoint for the cluster | +| [aurora\_mysql\_v2\_cluster\_engine\_version\_actual](#output\_aurora\_mysql\_v2\_cluster\_engine\_version\_actual) | The running version of the cluster database | +| [aurora\_mysql\_v2\_cluster\_hosted\_zone\_id](#output\_aurora\_mysql\_v2\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | +| [aurora\_mysql\_v2\_cluster\_id](#output\_aurora\_mysql\_v2\_cluster\_id) | The RDS Cluster Identifier | +| [aurora\_mysql\_v2\_cluster\_instances](#output\_aurora\_mysql\_v2\_cluster\_instances) | A map of cluster instances and their attributes | +| [aurora\_mysql\_v2\_cluster\_master\_password](#output\_aurora\_mysql\_v2\_cluster\_master\_password) | The database master password | +| [aurora\_mysql\_v2\_cluster\_master\_username](#output\_aurora\_mysql\_v2\_cluster\_master\_username) | The database master username | +| [aurora\_mysql\_v2\_cluster\_members](#output\_aurora\_mysql\_v2\_cluster\_members) | List of RDS Instances that are a part of this cluster | +| [aurora\_mysql\_v2\_cluster\_port](#output\_aurora\_mysql\_v2\_cluster\_port) | The database port | +| [aurora\_mysql\_v2\_cluster\_reader\_endpoint](#output\_aurora\_mysql\_v2\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | +| [aurora\_mysql\_v2\_cluster\_resource\_id](#output\_aurora\_mysql\_v2\_cluster\_resource\_id) | The RDS Cluster Resource ID | +| [aurora\_mysql\_v2\_cluster\_role\_associations](#output\_aurora\_mysql\_v2\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | +| [aurora\_mysql\_v2\_db\_subnet\_group\_name](#output\_aurora\_mysql\_v2\_db\_subnet\_group\_name) | The db subnet group name | +| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_arn](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | +| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_name](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | +| [aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_aurora\_mysql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | +| [aurora\_mysql\_v2\_security\_group\_id](#output\_aurora\_mysql\_v2\_security\_group\_id) | The security group ID of the cluster | +| [aurora\_postgresql\_v2\_additional\_cluster\_endpoints](#output\_aurora\_postgresql\_v2\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | +| [aurora\_postgresql\_v2\_cluster\_arn](#output\_aurora\_postgresql\_v2\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | +| [aurora\_postgresql\_v2\_cluster\_database\_name](#output\_aurora\_postgresql\_v2\_cluster\_database\_name) | Name for an automatically created database on cluster creation | +| [aurora\_postgresql\_v2\_cluster\_endpoint](#output\_aurora\_postgresql\_v2\_cluster\_endpoint) | Writer endpoint for the cluster | +| [aurora\_postgresql\_v2\_cluster\_engine\_version\_actual](#output\_aurora\_postgresql\_v2\_cluster\_engine\_version\_actual) | The running version of the cluster database | +| [aurora\_postgresql\_v2\_cluster\_hosted\_zone\_id](#output\_aurora\_postgresql\_v2\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | +| [aurora\_postgresql\_v2\_cluster\_id](#output\_aurora\_postgresql\_v2\_cluster\_id) | The RDS Cluster Identifier | +| [aurora\_postgresql\_v2\_cluster\_instances](#output\_aurora\_postgresql\_v2\_cluster\_instances) | A map of cluster instances and their attributes | +| [aurora\_postgresql\_v2\_cluster\_master\_password](#output\_aurora\_postgresql\_v2\_cluster\_master\_password) | The database master password | +| [aurora\_postgresql\_v2\_cluster\_master\_username](#output\_aurora\_postgresql\_v2\_cluster\_master\_username) | The database master username | +| [aurora\_postgresql\_v2\_cluster\_members](#output\_aurora\_postgresql\_v2\_cluster\_members) | List of RDS Instances that are a part of this cluster | +| [aurora\_postgresql\_v2\_cluster\_port](#output\_aurora\_postgresql\_v2\_cluster\_port) | The database port | +| [aurora\_postgresql\_v2\_cluster\_reader\_endpoint](#output\_aurora\_postgresql\_v2\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | +| [aurora\_postgresql\_v2\_cluster\_resource\_id](#output\_aurora\_postgresql\_v2\_cluster\_resource\_id) | The RDS Cluster Resource ID | +| [aurora\_postgresql\_v2\_cluster\_role\_associations](#output\_aurora\_postgresql\_v2\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | +| [aurora\_postgresql\_v2\_db\_subnet\_group\_name](#output\_aurora\_postgresql\_v2\_db\_subnet\_group\_name) | The db subnet group name | +| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_arn](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | +| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_name](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | +| [aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_aurora\_postgresql\_v2\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | +| [aurora\_postgresql\_v2\_security\_group\_id](#output\_aurora\_postgresql\_v2\_security\_group\_id) | The security group ID of the cluster | +| [aurora\_postresql\_v2\_cloudwatch\_log\_groups](#output\_aurora\_postresql\_v2\_cloudwatch\_log\_groups) | Map of CloudWatch log groups created and their attributes | +| [mysql\_additional\_cluster\_endpoints](#output\_mysql\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | +| [mysql\_cluster\_arn](#output\_mysql\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | +| [mysql\_cluster\_database\_name](#output\_mysql\_cluster\_database\_name) | Name for an automatically created database on cluster creation | +| [mysql\_cluster\_endpoint](#output\_mysql\_cluster\_endpoint) | Writer endpoint for the cluster | +| [mysql\_cluster\_engine\_version\_actual](#output\_mysql\_cluster\_engine\_version\_actual) | The running version of the cluster database | +| [mysql\_cluster\_hosted\_zone\_id](#output\_mysql\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | +| [mysql\_cluster\_id](#output\_mysql\_cluster\_id) | The RDS Cluster Identifier | +| [mysql\_cluster\_instances](#output\_mysql\_cluster\_instances) | A map of cluster instances and their attributes | +| [mysql\_cluster\_master\_password](#output\_mysql\_cluster\_master\_password) | The database master password | +| [mysql\_cluster\_master\_username](#output\_mysql\_cluster\_master\_username) | The database master username | +| [mysql\_cluster\_members](#output\_mysql\_cluster\_members) | List of RDS Instances that are a part of this cluster | +| [mysql\_cluster\_port](#output\_mysql\_cluster\_port) | The database port | +| [mysql\_cluster\_reader\_endpoint](#output\_mysql\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | +| [mysql\_cluster\_resource\_id](#output\_mysql\_cluster\_resource\_id) | The RDS Cluster Resource ID | +| [mysql\_cluster\_role\_associations](#output\_mysql\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | +| [mysql\_db\_subnet\_group\_name](#output\_mysql\_db\_subnet\_group\_name) | The db subnet group name | +| [mysql\_enhanced\_monitoring\_iam\_role\_arn](#output\_mysql\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | +| [mysql\_enhanced\_monitoring\_iam\_role\_name](#output\_mysql\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | +| [mysql\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_mysql\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | +| [mysql\_security\_group\_id](#output\_mysql\_security\_group\_id) | The security group ID of the cluster | +| [postgresql\_additional\_cluster\_endpoints](#output\_postgresql\_additional\_cluster\_endpoints) | A map of additional cluster endpoints and their attributes | +| [postgresql\_cluster\_arn](#output\_postgresql\_cluster\_arn) | Amazon Resource Name (ARN) of cluster | +| [postgresql\_cluster\_database\_name](#output\_postgresql\_cluster\_database\_name) | Name for an automatically created database on cluster creation | +| [postgresql\_cluster\_endpoint](#output\_postgresql\_cluster\_endpoint) | Writer endpoint for the cluster | +| [postgresql\_cluster\_engine\_version\_actual](#output\_postgresql\_cluster\_engine\_version\_actual) | The running version of the cluster database | +| [postgresql\_cluster\_hosted\_zone\_id](#output\_postgresql\_cluster\_hosted\_zone\_id) | The Route53 Hosted Zone ID of the endpoint | +| [postgresql\_cluster\_id](#output\_postgresql\_cluster\_id) | The RDS Cluster Identifier | +| [postgresql\_cluster\_instances](#output\_postgresql\_cluster\_instances) | A map of cluster instances and their attributes | +| [postgresql\_cluster\_master\_password](#output\_postgresql\_cluster\_master\_password) | The database master password | +| [postgresql\_cluster\_master\_username](#output\_postgresql\_cluster\_master\_username) | The database master username | +| [postgresql\_cluster\_members](#output\_postgresql\_cluster\_members) | List of RDS Instances that are a part of this cluster | +| [postgresql\_cluster\_port](#output\_postgresql\_cluster\_port) | The database port | +| [postgresql\_cluster\_reader\_endpoint](#output\_postgresql\_cluster\_reader\_endpoint) | A read-only endpoint for the cluster, automatically load-balanced across replicas | +| [postgresql\_cluster\_resource\_id](#output\_postgresql\_cluster\_resource\_id) | The RDS Cluster Resource ID | +| [postgresql\_cluster\_role\_associations](#output\_postgresql\_cluster\_role\_associations) | A map of IAM roles associated with the cluster and their attributes | +| [postgresql\_db\_subnet\_group\_name](#output\_postgresql\_db\_subnet\_group\_name) | The db subnet group name | +| [postgresql\_enhanced\_monitoring\_iam\_role\_arn](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role | +| [postgresql\_enhanced\_monitoring\_iam\_role\_name](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role | +| [postgresql\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_postgresql\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role | +| [postgresql\_security\_group\_id](#output\_postgresql\_security\_group\_id) | The security group ID of the cluster | diff --git a/examples/serverless/outputs.tf b/examples/serverless/outputs.tf index d9d84516..34eed051 100644 --- a/examples/serverless/outputs.tf +++ b/examples/serverless/outputs.tf @@ -1,462 +1,462 @@ -################################################################################# -## RDS Aurora Module - PostgreSQL -################################################################################# -# -## aws_db_subnet_group -#output "postgresql_db_subnet_group_name" { -# description = "The db subnet group name" -# value = module.aurora_postgresql.db_subnet_group_name -#} -# -## aws_rds_cluster -#output "postgresql_cluster_arn" { -# description = "Amazon Resource Name (ARN) of cluster" -# value = module.aurora_postgresql.cluster_arn -#} -# -#output "postgresql_cluster_id" { -# description = "The RDS Cluster Identifier" -# value = module.aurora_postgresql.cluster_id -#} -# -#output "postgresql_cluster_resource_id" { -# description = "The RDS Cluster Resource ID" -# value = module.aurora_postgresql.cluster_resource_id -#} -# -#output "postgresql_cluster_members" { -# description = "List of RDS Instances that are a part of this cluster" -# value = module.aurora_postgresql.cluster_members -#} -# -#output "postgresql_cluster_endpoint" { -# description = "Writer endpoint for the cluster" -# value = module.aurora_postgresql.cluster_endpoint -#} -# -#output "postgresql_cluster_reader_endpoint" { -# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" -# value = module.aurora_postgresql.cluster_reader_endpoint -#} -# -#output "postgresql_cluster_engine_version_actual" { -# description = "The running version of the cluster database" -# value = module.aurora_postgresql.cluster_engine_version_actual -#} -# -## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -#output "postgresql_cluster_database_name" { -# description = "Name for an automatically created database on cluster creation" -# value = module.aurora_postgresql.cluster_database_name -#} -# -#output "postgresql_cluster_port" { -# description = "The database port" -# value = module.aurora_postgresql.cluster_port -#} -# -#output "postgresql_cluster_master_password" { -# description = "The database master password" -# value = module.aurora_postgresql.cluster_master_password -# sensitive = true -#} -# -#output "postgresql_cluster_master_username" { -# description = "The database master username" -# value = module.aurora_postgresql.cluster_master_username -# sensitive = true -#} -# -#output "postgresql_cluster_hosted_zone_id" { -# description = "The Route53 Hosted Zone ID of the endpoint" -# value = module.aurora_postgresql.cluster_hosted_zone_id -#} -# -## aws_rds_cluster_instances -#output "postgresql_cluster_instances" { -# description = "A map of cluster instances and their attributes" -# value = module.aurora_postgresql.cluster_instances -#} -# -## aws_rds_cluster_endpoint -#output "postgresql_additional_cluster_endpoints" { -# description = "A map of additional cluster endpoints and their attributes" -# value = module.aurora_postgresql.additional_cluster_endpoints -#} -# -## aws_rds_cluster_role_association -#output "postgresql_cluster_role_associations" { -# description = "A map of IAM roles associated with the cluster and their attributes" -# value = module.aurora_postgresql.cluster_role_associations -#} -# -## Enhanced monitoring role -#output "postgresql_enhanced_monitoring_iam_role_name" { -# description = "The name of the enhanced monitoring role" -# value = module.aurora_postgresql.enhanced_monitoring_iam_role_name -#} -# -#output "postgresql_enhanced_monitoring_iam_role_arn" { -# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" -# value = module.aurora_postgresql.enhanced_monitoring_iam_role_arn -#} -# -#output "postgresql_enhanced_monitoring_iam_role_unique_id" { -# description = "Stable and unique string identifying the enhanced monitoring role" -# value = module.aurora_postgresql.enhanced_monitoring_iam_role_unique_id -#} -# -## aws_security_group -#output "postgresql_security_group_id" { -# description = "The security group ID of the cluster" -# value = module.aurora_postgresql.security_group_id -#} -# -################################################################################# -## RDS Aurora Module - MySQL -################################################################################# -# -## aws_db_subnet_group -#output "mysql_db_subnet_group_name" { -# description = "The db subnet group name" -# value = module.aurora_mysql.db_subnet_group_name -#} -# -## aws_rds_cluster -#output "mysql_cluster_arn" { -# description = "Amazon Resource Name (ARN) of cluster" -# value = module.aurora_mysql.cluster_arn -#} -# -#output "mysql_cluster_id" { -# description = "The RDS Cluster Identifier" -# value = module.aurora_mysql.cluster_id -#} -# -#output "mysql_cluster_resource_id" { -# description = "The RDS Cluster Resource ID" -# value = module.aurora_mysql.cluster_resource_id -#} -# -#output "mysql_cluster_members" { -# description = "List of RDS Instances that are a part of this cluster" -# value = module.aurora_mysql.cluster_members -#} -# -#output "mysql_cluster_endpoint" { -# description = "Writer endpoint for the cluster" -# value = module.aurora_mysql.cluster_endpoint -#} -# -#output "mysql_cluster_reader_endpoint" { -# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" -# value = module.aurora_mysql.cluster_reader_endpoint -#} -# -#output "mysql_cluster_engine_version_actual" { -# description = "The running version of the cluster database" -# value = module.aurora_mysql.cluster_engine_version_actual -#} -# -## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -#output "mysql_cluster_database_name" { -# description = "Name for an automatically created database on cluster creation" -# value = module.aurora_mysql.cluster_database_name -#} -# -#output "mysql_cluster_port" { -# description = "The database port" -# value = module.aurora_mysql.cluster_port -#} -# -#output "mysql_cluster_master_password" { -# description = "The database master password" -# value = module.aurora_mysql.cluster_master_password -# sensitive = true -#} -# -#output "mysql_cluster_master_username" { -# description = "The database master username" -# value = module.aurora_mysql.cluster_master_username -# sensitive = true -#} -# -#output "mysql_cluster_hosted_zone_id" { -# description = "The Route53 Hosted Zone ID of the endpoint" -# value = module.aurora_mysql.cluster_hosted_zone_id -#} -# -## aws_rds_cluster_instances -#output "mysql_cluster_instances" { -# description = "A map of cluster instances and their attributes" -# value = module.aurora_mysql.cluster_instances -#} -# -## aws_rds_cluster_endpoint -#output "mysql_additional_cluster_endpoints" { -# description = "A map of additional cluster endpoints and their attributes" -# value = module.aurora_mysql.additional_cluster_endpoints -#} -# -## aws_rds_cluster_role_association -#output "mysql_cluster_role_associations" { -# description = "A map of IAM roles associated with the cluster and their attributes" -# value = module.aurora_mysql.cluster_role_associations -#} -# -## Enhanced monitoring role -#output "mysql_enhanced_monitoring_iam_role_name" { -# description = "The name of the enhanced monitoring role" -# value = module.aurora_mysql.enhanced_monitoring_iam_role_name -#} -# -#output "mysql_enhanced_monitoring_iam_role_arn" { -# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" -# value = module.aurora_mysql.enhanced_monitoring_iam_role_arn -#} -# -#output "mysql_enhanced_monitoring_iam_role_unique_id" { -# description = "Stable and unique string identifying the enhanced monitoring role" -# value = module.aurora_mysql.enhanced_monitoring_iam_role_unique_id -#} -# -## aws_security_group -#output "mysql_security_group_id" { -# description = "The security group ID of the cluster" -# value = module.aurora_mysql.security_group_id -#} -# -# -################################################################################# -## RDS Aurora Module - MySQL Serverless V2 -################################################################################# -# -## aws_db_subnet_group -#output "aurora_mysql_v2_db_subnet_group_name" { -# description = "The db subnet group name" -# value = module.aurora_mysql_v2.db_subnet_group_name -#} -# -## aws_rds_cluster -#output "aurora_mysql_v2_cluster_arn" { -# description = "Amazon Resource Name (ARN) of cluster" -# value = module.aurora_mysql_v2.cluster_arn -#} -# -#output "aurora_mysql_v2_cluster_id" { -# description = "The RDS Cluster Identifier" -# value = module.aurora_mysql_v2.cluster_id -#} -# -#output "aurora_mysql_v2_cluster_resource_id" { -# description = "The RDS Cluster Resource ID" -# value = module.aurora_mysql_v2.cluster_resource_id -#} -# -#output "aurora_mysql_v2_cluster_members" { -# description = "List of RDS Instances that are a part of this cluster" -# value = module.aurora_mysql_v2.cluster_members -#} -# -#output "aurora_mysql_v2_cluster_endpoint" { -# description = "Writer endpoint for the cluster" -# value = module.aurora_mysql_v2.cluster_endpoint -#} -# -#output "aurora_mysql_v2_cluster_reader_endpoint" { -# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" -# value = module.aurora_mysql_v2.cluster_reader_endpoint -#} -# -#output "aurora_mysql_v2_cluster_engine_version_actual" { -# description = "The running version of the cluster database" -# value = module.aurora_mysql_v2.cluster_engine_version_actual -#} -# -## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -#output "aurora_mysql_v2_cluster_database_name" { -# description = "Name for an automatically created database on cluster creation" -# value = module.aurora_mysql_v2.cluster_database_name -#} -# -#output "aurora_mysql_v2_cluster_port" { -# description = "The database port" -# value = module.aurora_mysql_v2.cluster_port -#} -# -#output "aurora_mysql_v2_cluster_master_password" { -# description = "The database master password" -# value = module.aurora_mysql_v2.cluster_master_password -# sensitive = true -#} -# -#output "aurora_mysql_v2_cluster_master_username" { -# description = "The database master username" -# value = module.aurora_mysql_v2.cluster_master_username -# sensitive = true -#} -# -#output "aurora_mysql_v2_cluster_hosted_zone_id" { -# description = "The Route53 Hosted Zone ID of the endpoint" -# value = module.aurora_mysql_v2.cluster_hosted_zone_id -#} -# -## aws_rds_cluster_instances -#output "aurora_mysql_v2_cluster_instances" { -# description = "A map of cluster instances and their attributes" -# value = module.aurora_mysql_v2.cluster_instances -#} -# -## aws_rds_cluster_endpoint -#output "aurora_mysql_v2_additional_cluster_endpoints" { -# description = "A map of additional cluster endpoints and their attributes" -# value = module.aurora_mysql_v2.additional_cluster_endpoints -#} -# -## aws_rds_cluster_role_association -#output "aurora_mysql_v2_cluster_role_associations" { -# description = "A map of IAM roles associated with the cluster and their attributes" -# value = module.aurora_mysql_v2.cluster_role_associations -#} -# -## Enhanced monitoring role -#output "aurora_mysql_v2_enhanced_monitoring_iam_role_name" { -# description = "The name of the enhanced monitoring role" -# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_name -#} -# -#output "aurora_mysql_v2_enhanced_monitoring_iam_role_arn" { -# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" -# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_arn -#} -# -#output "aurora_mysql_v2_enhanced_monitoring_iam_role_unique_id" { -# description = "Stable and unique string identifying the enhanced monitoring role" -# value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_unique_id -#} -# -## aws_security_group -#output "aurora_mysql_v2_security_group_id" { -# description = "The security group ID of the cluster" -# value = module.aurora_mysql_v2.security_group_id -#} -# -################################################################################# -## RDS Aurora Module - PostgreSQL Serverless V2 -################################################################################# -# -## aws_db_subnet_group -#output "aurora_postgresql_v2_db_subnet_group_name" { -# description = "The db subnet group name" -# value = module.aurora_postgresql_v2.db_subnet_group_name -#} -# -## aws_rds_cluster -#output "aurora_postgresql_v2_cluster_arn" { -# description = "Amazon Resource Name (ARN) of cluster" -# value = module.aurora_postgresql_v2.cluster_arn -#} -# -#output "aurora_postgresql_v2_cluster_id" { -# description = "The RDS Cluster Identifier" -# value = module.aurora_postgresql_v2.cluster_id -#} -# -#output "aurora_postgresql_v2_cluster_resource_id" { -# description = "The RDS Cluster Resource ID" -# value = module.aurora_postgresql_v2.cluster_resource_id -#} -# -#output "aurora_postgresql_v2_cluster_members" { -# description = "List of RDS Instances that are a part of this cluster" -# value = module.aurora_postgresql_v2.cluster_members -#} -# -#output "aurora_postgresql_v2_cluster_endpoint" { -# description = "Writer endpoint for the cluster" -# value = module.aurora_postgresql_v2.cluster_endpoint -#} -# -#output "aurora_postgresql_v2_cluster_reader_endpoint" { -# description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" -# value = module.aurora_postgresql_v2.cluster_reader_endpoint -#} -# -#output "aurora_postgresql_v2_cluster_engine_version_actual" { -# description = "The running version of the cluster database" -# value = module.aurora_postgresql_v2.cluster_engine_version_actual -#} -# -## database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output -#output "aurora_postgresql_v2_cluster_database_name" { -# description = "Name for an automatically created database on cluster creation" -# value = module.aurora_postgresql_v2.cluster_database_name -#} -# -#output "aurora_postgresql_v2_cluster_port" { -# description = "The database port" -# value = module.aurora_postgresql_v2.cluster_port -#} -# -#output "aurora_postgresql_v2_cluster_master_password" { -# description = "The database master password" -# value = module.aurora_postgresql_v2.cluster_master_password -# sensitive = true -#} -# -#output "aurora_postgresql_v2_cluster_master_username" { -# description = "The database master username" -# value = module.aurora_postgresql_v2.cluster_master_username -# sensitive = true -#} -# -#output "aurora_postgresql_v2_cluster_hosted_zone_id" { -# description = "The Route53 Hosted Zone ID of the endpoint" -# value = module.aurora_postgresql_v2.cluster_hosted_zone_id -#} -# -## aws_rds_cluster_instances -#output "aurora_postgresql_v2_cluster_instances" { -# description = "A map of cluster instances and their attributes" -# value = module.aurora_postgresql_v2.cluster_instances -#} -# -## aws_rds_cluster_endpoint -#output "aurora_postgresql_v2_additional_cluster_endpoints" { -# description = "A map of additional cluster endpoints and their attributes" -# value = module.aurora_postgresql_v2.additional_cluster_endpoints -#} -# -## aws_rds_cluster_role_association -#output "aurora_postgresql_v2_cluster_role_associations" { -# description = "A map of IAM roles associated with the cluster and their attributes" -# value = module.aurora_postgresql_v2.cluster_role_associations -#} -# -## Enhanced monitoring role -#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_name" { -# description = "The name of the enhanced monitoring role" -# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_name -#} -# -#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_arn" { -# description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" -# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_arn -#} -# -#output "aurora_postgresql_v2_enhanced_monitoring_iam_role_unique_id" { -# description = "Stable and unique string identifying the enhanced monitoring role" -# value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_unique_id -#} -# -## aws_security_group -#output "aurora_postgresql_v2_security_group_id" { -# description = "The security group ID of the cluster" -# value = module.aurora_postgresql_v2.security_group_id -#} -# -## Cloudwatch Log groups -#output "aurora_postresql_v2_cloudwatch_log_groups" { -# description = "Map of CloudWatch log groups created and their attributes" -# value = module.aurora_postgresql_v2.db_cluster_cloudwatch_log_groups -#} +################################################################################ +# RDS Aurora Module - PostgreSQL +################################################################################ + +# aws_db_subnet_group +output "postgresql_db_subnet_group_name" { + description = "The db subnet group name" + value = module.aurora_postgresql.db_subnet_group_name +} + +# aws_rds_cluster +output "postgresql_cluster_arn" { + description = "Amazon Resource Name (ARN) of cluster" + value = module.aurora_postgresql.cluster_arn +} + +output "postgresql_cluster_id" { + description = "The RDS Cluster Identifier" + value = module.aurora_postgresql.cluster_id +} + +output "postgresql_cluster_resource_id" { + description = "The RDS Cluster Resource ID" + value = module.aurora_postgresql.cluster_resource_id +} + +output "postgresql_cluster_members" { + description = "List of RDS Instances that are a part of this cluster" + value = module.aurora_postgresql.cluster_members +} + +output "postgresql_cluster_endpoint" { + description = "Writer endpoint for the cluster" + value = module.aurora_postgresql.cluster_endpoint +} + +output "postgresql_cluster_reader_endpoint" { + description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" + value = module.aurora_postgresql.cluster_reader_endpoint +} + +output "postgresql_cluster_engine_version_actual" { + description = "The running version of the cluster database" + value = module.aurora_postgresql.cluster_engine_version_actual +} + +# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +output "postgresql_cluster_database_name" { + description = "Name for an automatically created database on cluster creation" + value = module.aurora_postgresql.cluster_database_name +} + +output "postgresql_cluster_port" { + description = "The database port" + value = module.aurora_postgresql.cluster_port +} + +output "postgresql_cluster_master_password" { + description = "The database master password" + value = module.aurora_postgresql.cluster_master_password + sensitive = true +} + +output "postgresql_cluster_master_username" { + description = "The database master username" + value = module.aurora_postgresql.cluster_master_username + sensitive = true +} + +output "postgresql_cluster_hosted_zone_id" { + description = "The Route53 Hosted Zone ID of the endpoint" + value = module.aurora_postgresql.cluster_hosted_zone_id +} + +# aws_rds_cluster_instances +output "postgresql_cluster_instances" { + description = "A map of cluster instances and their attributes" + value = module.aurora_postgresql.cluster_instances +} + +# aws_rds_cluster_endpoint +output "postgresql_additional_cluster_endpoints" { + description = "A map of additional cluster endpoints and their attributes" + value = module.aurora_postgresql.additional_cluster_endpoints +} + +# aws_rds_cluster_role_association +output "postgresql_cluster_role_associations" { + description = "A map of IAM roles associated with the cluster and their attributes" + value = module.aurora_postgresql.cluster_role_associations +} + +# Enhanced monitoring role +output "postgresql_enhanced_monitoring_iam_role_name" { + description = "The name of the enhanced monitoring role" + value = module.aurora_postgresql.enhanced_monitoring_iam_role_name +} + +output "postgresql_enhanced_monitoring_iam_role_arn" { + description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" + value = module.aurora_postgresql.enhanced_monitoring_iam_role_arn +} + +output "postgresql_enhanced_monitoring_iam_role_unique_id" { + description = "Stable and unique string identifying the enhanced monitoring role" + value = module.aurora_postgresql.enhanced_monitoring_iam_role_unique_id +} + +# aws_security_group +output "postgresql_security_group_id" { + description = "The security group ID of the cluster" + value = module.aurora_postgresql.security_group_id +} + +################################################################################ +# RDS Aurora Module - MySQL +################################################################################ + +# aws_db_subnet_group +output "mysql_db_subnet_group_name" { + description = "The db subnet group name" + value = module.aurora_mysql.db_subnet_group_name +} + +# aws_rds_cluster +output "mysql_cluster_arn" { + description = "Amazon Resource Name (ARN) of cluster" + value = module.aurora_mysql.cluster_arn +} + +output "mysql_cluster_id" { + description = "The RDS Cluster Identifier" + value = module.aurora_mysql.cluster_id +} + +output "mysql_cluster_resource_id" { + description = "The RDS Cluster Resource ID" + value = module.aurora_mysql.cluster_resource_id +} + +output "mysql_cluster_members" { + description = "List of RDS Instances that are a part of this cluster" + value = module.aurora_mysql.cluster_members +} + +output "mysql_cluster_endpoint" { + description = "Writer endpoint for the cluster" + value = module.aurora_mysql.cluster_endpoint +} + +output "mysql_cluster_reader_endpoint" { + description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" + value = module.aurora_mysql.cluster_reader_endpoint +} + +output "mysql_cluster_engine_version_actual" { + description = "The running version of the cluster database" + value = module.aurora_mysql.cluster_engine_version_actual +} + +# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +output "mysql_cluster_database_name" { + description = "Name for an automatically created database on cluster creation" + value = module.aurora_mysql.cluster_database_name +} + +output "mysql_cluster_port" { + description = "The database port" + value = module.aurora_mysql.cluster_port +} + +output "mysql_cluster_master_password" { + description = "The database master password" + value = module.aurora_mysql.cluster_master_password + sensitive = true +} + +output "mysql_cluster_master_username" { + description = "The database master username" + value = module.aurora_mysql.cluster_master_username + sensitive = true +} + +output "mysql_cluster_hosted_zone_id" { + description = "The Route53 Hosted Zone ID of the endpoint" + value = module.aurora_mysql.cluster_hosted_zone_id +} + +# aws_rds_cluster_instances +output "mysql_cluster_instances" { + description = "A map of cluster instances and their attributes" + value = module.aurora_mysql.cluster_instances +} + +# aws_rds_cluster_endpoint +output "mysql_additional_cluster_endpoints" { + description = "A map of additional cluster endpoints and their attributes" + value = module.aurora_mysql.additional_cluster_endpoints +} + +# aws_rds_cluster_role_association +output "mysql_cluster_role_associations" { + description = "A map of IAM roles associated with the cluster and their attributes" + value = module.aurora_mysql.cluster_role_associations +} + +# Enhanced monitoring role +output "mysql_enhanced_monitoring_iam_role_name" { + description = "The name of the enhanced monitoring role" + value = module.aurora_mysql.enhanced_monitoring_iam_role_name +} + +output "mysql_enhanced_monitoring_iam_role_arn" { + description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" + value = module.aurora_mysql.enhanced_monitoring_iam_role_arn +} + +output "mysql_enhanced_monitoring_iam_role_unique_id" { + description = "Stable and unique string identifying the enhanced monitoring role" + value = module.aurora_mysql.enhanced_monitoring_iam_role_unique_id +} + +# aws_security_group +output "mysql_security_group_id" { + description = "The security group ID of the cluster" + value = module.aurora_mysql.security_group_id +} + + +################################################################################ +# RDS Aurora Module - MySQL Serverless V2 +################################################################################ + +# aws_db_subnet_group +output "aurora_mysql_v2_db_subnet_group_name" { + description = "The db subnet group name" + value = module.aurora_mysql_v2.db_subnet_group_name +} + +# aws_rds_cluster +output "aurora_mysql_v2_cluster_arn" { + description = "Amazon Resource Name (ARN) of cluster" + value = module.aurora_mysql_v2.cluster_arn +} + +output "aurora_mysql_v2_cluster_id" { + description = "The RDS Cluster Identifier" + value = module.aurora_mysql_v2.cluster_id +} + +output "aurora_mysql_v2_cluster_resource_id" { + description = "The RDS Cluster Resource ID" + value = module.aurora_mysql_v2.cluster_resource_id +} + +output "aurora_mysql_v2_cluster_members" { + description = "List of RDS Instances that are a part of this cluster" + value = module.aurora_mysql_v2.cluster_members +} + +output "aurora_mysql_v2_cluster_endpoint" { + description = "Writer endpoint for the cluster" + value = module.aurora_mysql_v2.cluster_endpoint +} + +output "aurora_mysql_v2_cluster_reader_endpoint" { + description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" + value = module.aurora_mysql_v2.cluster_reader_endpoint +} + +output "aurora_mysql_v2_cluster_engine_version_actual" { + description = "The running version of the cluster database" + value = module.aurora_mysql_v2.cluster_engine_version_actual +} + +# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +output "aurora_mysql_v2_cluster_database_name" { + description = "Name for an automatically created database on cluster creation" + value = module.aurora_mysql_v2.cluster_database_name +} + +output "aurora_mysql_v2_cluster_port" { + description = "The database port" + value = module.aurora_mysql_v2.cluster_port +} + +output "aurora_mysql_v2_cluster_master_password" { + description = "The database master password" + value = module.aurora_mysql_v2.cluster_master_password + sensitive = true +} + +output "aurora_mysql_v2_cluster_master_username" { + description = "The database master username" + value = module.aurora_mysql_v2.cluster_master_username + sensitive = true +} + +output "aurora_mysql_v2_cluster_hosted_zone_id" { + description = "The Route53 Hosted Zone ID of the endpoint" + value = module.aurora_mysql_v2.cluster_hosted_zone_id +} + +# aws_rds_cluster_instances +output "aurora_mysql_v2_cluster_instances" { + description = "A map of cluster instances and their attributes" + value = module.aurora_mysql_v2.cluster_instances +} + +# aws_rds_cluster_endpoint +output "aurora_mysql_v2_additional_cluster_endpoints" { + description = "A map of additional cluster endpoints and their attributes" + value = module.aurora_mysql_v2.additional_cluster_endpoints +} + +# aws_rds_cluster_role_association +output "aurora_mysql_v2_cluster_role_associations" { + description = "A map of IAM roles associated with the cluster and their attributes" + value = module.aurora_mysql_v2.cluster_role_associations +} + +# Enhanced monitoring role +output "aurora_mysql_v2_enhanced_monitoring_iam_role_name" { + description = "The name of the enhanced monitoring role" + value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_name +} + +output "aurora_mysql_v2_enhanced_monitoring_iam_role_arn" { + description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" + value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_arn +} + +output "aurora_mysql_v2_enhanced_monitoring_iam_role_unique_id" { + description = "Stable and unique string identifying the enhanced monitoring role" + value = module.aurora_mysql_v2.enhanced_monitoring_iam_role_unique_id +} + +# aws_security_group +output "aurora_mysql_v2_security_group_id" { + description = "The security group ID of the cluster" + value = module.aurora_mysql_v2.security_group_id +} + +################################################################################ +# RDS Aurora Module - PostgreSQL Serverless V2 +################################################################################ + +# aws_db_subnet_group +output "aurora_postgresql_v2_db_subnet_group_name" { + description = "The db subnet group name" + value = module.aurora_postgresql_v2.db_subnet_group_name +} + +# aws_rds_cluster +output "aurora_postgresql_v2_cluster_arn" { + description = "Amazon Resource Name (ARN) of cluster" + value = module.aurora_postgresql_v2.cluster_arn +} + +output "aurora_postgresql_v2_cluster_id" { + description = "The RDS Cluster Identifier" + value = module.aurora_postgresql_v2.cluster_id +} + +output "aurora_postgresql_v2_cluster_resource_id" { + description = "The RDS Cluster Resource ID" + value = module.aurora_postgresql_v2.cluster_resource_id +} + +output "aurora_postgresql_v2_cluster_members" { + description = "List of RDS Instances that are a part of this cluster" + value = module.aurora_postgresql_v2.cluster_members +} + +output "aurora_postgresql_v2_cluster_endpoint" { + description = "Writer endpoint for the cluster" + value = module.aurora_postgresql_v2.cluster_endpoint +} + +output "aurora_postgresql_v2_cluster_reader_endpoint" { + description = "A read-only endpoint for the cluster, automatically load-balanced across replicas" + value = module.aurora_postgresql_v2.cluster_reader_endpoint +} + +output "aurora_postgresql_v2_cluster_engine_version_actual" { + description = "The running version of the cluster database" + value = module.aurora_postgresql_v2.cluster_engine_version_actual +} + +# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output +output "aurora_postgresql_v2_cluster_database_name" { + description = "Name for an automatically created database on cluster creation" + value = module.aurora_postgresql_v2.cluster_database_name +} + +output "aurora_postgresql_v2_cluster_port" { + description = "The database port" + value = module.aurora_postgresql_v2.cluster_port +} + +output "aurora_postgresql_v2_cluster_master_password" { + description = "The database master password" + value = module.aurora_postgresql_v2.cluster_master_password + sensitive = true +} + +output "aurora_postgresql_v2_cluster_master_username" { + description = "The database master username" + value = module.aurora_postgresql_v2.cluster_master_username + sensitive = true +} + +output "aurora_postgresql_v2_cluster_hosted_zone_id" { + description = "The Route53 Hosted Zone ID of the endpoint" + value = module.aurora_postgresql_v2.cluster_hosted_zone_id +} + +# aws_rds_cluster_instances +output "aurora_postgresql_v2_cluster_instances" { + description = "A map of cluster instances and their attributes" + value = module.aurora_postgresql_v2.cluster_instances +} + +# aws_rds_cluster_endpoint +output "aurora_postgresql_v2_additional_cluster_endpoints" { + description = "A map of additional cluster endpoints and their attributes" + value = module.aurora_postgresql_v2.additional_cluster_endpoints +} + +# aws_rds_cluster_role_association +output "aurora_postgresql_v2_cluster_role_associations" { + description = "A map of IAM roles associated with the cluster and their attributes" + value = module.aurora_postgresql_v2.cluster_role_associations +} + +# Enhanced monitoring role +output "aurora_postgresql_v2_enhanced_monitoring_iam_role_name" { + description = "The name of the enhanced monitoring role" + value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_name +} + +output "aurora_postgresql_v2_enhanced_monitoring_iam_role_arn" { + description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role" + value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_arn +} + +output "aurora_postgresql_v2_enhanced_monitoring_iam_role_unique_id" { + description = "Stable and unique string identifying the enhanced monitoring role" + value = module.aurora_postgresql_v2.enhanced_monitoring_iam_role_unique_id +} + +# aws_security_group +output "aurora_postgresql_v2_security_group_id" { + description = "The security group ID of the cluster" + value = module.aurora_postgresql_v2.security_group_id +} + +# Cloudwatch Log groups +output "aurora_postresql_v2_cloudwatch_log_groups" { + description = "Map of CloudWatch log groups created and their attributes" + value = module.aurora_postgresql_v2.db_cluster_cloudwatch_log_groups +}