Skip to content

Commit

Permalink
feat: added outputs ssm and route-53
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Jun 12, 2023
1 parent 866a803 commit 072bcf0
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
9 changes: 9 additions & 0 deletions _example/memcached/outputs.tf
Expand Up @@ -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"
}
10 changes: 10 additions & 0 deletions _example/redis-cluster/outputs.tf
Expand Up @@ -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"
}
8 changes: 4 additions & 4 deletions _example/redis/example.tf
Expand Up @@ -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"

}
11 changes: 11 additions & 0 deletions _example/redis/outputs.tf
Expand Up @@ -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"
}
20 changes: 20 additions & 0 deletions outputs.tf
Expand Up @@ -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"
}

0 comments on commit 072bcf0

Please sign in to comment.