Commit 1d51b8f7 authored by SolidSly's avatar SolidSly Committed by Anton Babenko

Add outputs for the monitoring role arn (#181)

* add outputs for the monitoring role arn

* add outputs for the monitoring role arn

* Fixed value in outputs
Co-authored-by: default avatarAnton Babenko <anton@antonbabenko.com>
parent b2fc948f
......@@ -203,6 +203,8 @@ module "db" {
| Name | Description |
|------|-------------|
| enhanced\_monitoring\_iam\_role\_arn | The Amazon Resource Name \(ARN\) specifying the monitoring role |
| enhanced\_monitoring\_iam\_role\_name | The name of the monitoring role |
| this\_db\_instance\_address | The address of the RDS instance |
| this\_db\_instance\_arn | The ARN of the RDS instance |
| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance |
......
......@@ -58,6 +58,8 @@
| Name | Description |
|------|-------------|
| enhanced\_monitoring\_iam\_role\_arn | The Amazon Resource Name \(ARN\) specifying the monitoring role |
| enhanced\_monitoring\_iam\_role\_name | The name of the monitoring role |
| this\_db\_instance\_address | The address of the RDS instance |
| this\_db\_instance\_arn | The ARN of the RDS instance |
| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance |
......
locals {
enhanced_monitoring_iam_role_name = element(concat(aws_iam_role.enhanced_monitoring.*.name, [""]), 0)
enhanced_monitoring_iam_role_arn = element(concat(aws_iam_role.enhanced_monitoring.*.arn, [""]), 0)
this_db_instance_address = element(concat(aws_db_instance.this_mssql.*.address, aws_db_instance.this.*.address, [""]), 0)
this_db_instance_arn = element(concat(aws_db_instance.this_mssql.*.arn, aws_db_instance.this.*.arn, [""]), 0)
this_db_instance_availability_zone = element(concat(aws_db_instance.this_mssql.*.availability_zone, aws_db_instance.this.*.availability_zone, [""]), 0)
......@@ -13,6 +15,16 @@ locals {
this_db_instance_ca_cert_identifier = element(concat(aws_db_instance.this_mssql.*.ca_cert_identifier, aws_db_instance.this.*.ca_cert_identifier, [""]), 0)
}
output "enhanced_monitoring_iam_role_name" {
description = "The name of the monitoring role"
value = local.enhanced_monitoring_iam_role_name
}
output "enhanced_monitoring_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the monitoring role"
value = local.enhanced_monitoring_iam_role_arn
}
output "this_db_instance_address" {
description = "The address of the RDS instance"
value = local.this_db_instance_address
......
output "enhanced_monitoring_iam_role_name" {
description = "The name of the monitoring role"
value = module.db_instance.enhanced_monitoring_iam_role_name
}
output "enhanced_monitoring_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the monitoring role"
value = module.db_instance.enhanced_monitoring_iam_role_arn
}
output "this_db_instance_address" {
description = "The address of the RDS instance"
value = module.db_instance.this_db_instance_address
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment