diff --git a/_example/memcached/outputs.tf b/_example/memcached/outputs.tf index c67cabc..b11a1b2 100644 --- a/_example/memcached/outputs.tf +++ b/_example/memcached/outputs.tf @@ -13,3 +13,12 @@ output "memcached_endpoint" { description = "Memcached endpoint address." } +output "hostname" { + value = module.memcached.hostname + description = "DNS hostname" +} + +output "redis_ssm_arn" { + value = module.memcached.Memcached_ssm_arn + description = "A map of the names and ARNs created" +} \ No newline at end of file diff --git a/_example/redis-cluster/outputs.tf b/_example/redis-cluster/outputs.tf index c623d8d..7fdd18b 100644 --- a/_example/redis-cluster/outputs.tf +++ b/_example/redis-cluster/outputs.tf @@ -11,4 +11,14 @@ output "tags" { output "redis_endpoint" { value = module.redis-cluster.*.redis_endpoint description = "Redis endpoint address." +} + +output "hostname" { + value = module.redis-cluster.hostname + description = "DNS hostname" +} + +output "redis_ssm_arn" { + value = module.redis-cluster.redis_ssm_arn + description = "A map of the names and ARNs created" } \ No newline at end of file diff --git a/_example/redis/example.tf b/_example/redis/example.tf index cfb3281..f8ff784 100644 --- a/_example/redis/example.tf +++ b/_example/redis/example.tf @@ -91,11 +91,11 @@ module "redis" { ####---------------------------------------------------------------------------------- ## will create ROUTE-53 for redis which will add the dns of the cluster. ####---------------------------------------------------------------------------------- - route53_record_enabled = false - ssm_parameter_endpoint_enabled = false - dns_record_name = "prod" + route53_record_enabled = true + ssm_parameter_endpoint_enabled = true + dns_record_name = "prodd" route53_ttl = "300" route53_type = "CNAME" - route53_zone_id = "SERFxxxx6XCsY9Lxxxxx" + route53_zone_id = "Z0176416XCY9LDL0GH04" } \ No newline at end of file diff --git a/_example/redis/outputs.tf b/_example/redis/outputs.tf index 797b65b..d23ab70 100644 --- a/_example/redis/outputs.tf +++ b/_example/redis/outputs.tf @@ -16,4 +16,15 @@ output "redis_endpoint" { output "sg_id" { value = module.redis.*.sg_id description = "of the security group id." +} + +output "hostname" { + value = module.redis.*.hostname + description = "DNS hostname" +} + + +output "redis_ssm_arn" { + value = module.redis.redis_ssm_arn + description = "A map of the names and ARNs created" } \ No newline at end of file diff --git a/outputs.tf b/outputs.tf index 034a504..309fd30 100644 --- a/outputs.tf +++ b/outputs.tf @@ -38,4 +38,24 @@ output "memcached_arn" { output "sg_id" { value = join("", aws_security_group.default.*.id) +} + +output "hostname" { + value = join("", aws_route53_record.elasticache.*.fqdn) + description = "DNS hostname" +} + +output "memcached_hostname" { + value = join("", aws_route53_record.memcached_route_53.*.fqdn) + description = "DNS hostname" +} + +output "redis_ssm_arn" { + value = join("", aws_ssm_parameter.secret-endpoint.*.arn) + description = "A list of all of the parameter values" +} + +output "Memcached_ssm_arn" { + value = join("", aws_ssm_parameter.memcached_secret-endpoint.*.arn) + description = "A list of all of the parameter values" } \ No newline at end of file