Skip to content

Commit 072bcf0

Browse files
committed
feat: added outputs ssm and route-53
1 parent 866a803 commit 072bcf0

File tree

5 files changed

+54
-4
lines changed

5 files changed

+54
-4
lines changed

_example/memcached/outputs.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ output "memcached_endpoint" {
1313
description = "Memcached endpoint address."
1414
}
1515

16+
output "hostname" {
17+
value = module.memcached.hostname
18+
description = "DNS hostname"
19+
}
20+
21+
output "redis_ssm_arn" {
22+
value = module.memcached.Memcached_ssm_arn
23+
description = "A map of the names and ARNs created"
24+
}

_example/redis-cluster/outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,14 @@ output "tags" {
1111
output "redis_endpoint" {
1212
value = module.redis-cluster.*.redis_endpoint
1313
description = "Redis endpoint address."
14+
}
15+
16+
output "hostname" {
17+
value = module.redis-cluster.hostname
18+
description = "DNS hostname"
19+
}
20+
21+
output "redis_ssm_arn" {
22+
value = module.redis-cluster.redis_ssm_arn
23+
description = "A map of the names and ARNs created"
1424
}

_example/redis/example.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ module "redis" {
9191
####----------------------------------------------------------------------------------
9292
## will create ROUTE-53 for redis which will add the dns of the cluster.
9393
####----------------------------------------------------------------------------------
94-
route53_record_enabled = false
95-
ssm_parameter_endpoint_enabled = false
96-
dns_record_name = "prod"
94+
route53_record_enabled = true
95+
ssm_parameter_endpoint_enabled = true
96+
dns_record_name = "prodd"
9797
route53_ttl = "300"
9898
route53_type = "CNAME"
99-
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
99+
route53_zone_id = "Z0176416XCY9LDL0GH04"
100100

101101
}

_example/redis/outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,15 @@ output "redis_endpoint" {
1616
output "sg_id" {
1717
value = module.redis.*.sg_id
1818
description = "of the security group id."
19+
}
20+
21+
output "hostname" {
22+
value = module.redis.*.hostname
23+
description = "DNS hostname"
24+
}
25+
26+
27+
output "redis_ssm_arn" {
28+
value = module.redis.redis_ssm_arn
29+
description = "A map of the names and ARNs created"
1930
}

outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,24 @@ output "memcached_arn" {
3838

3939
output "sg_id" {
4040
value = join("", aws_security_group.default.*.id)
41+
}
42+
43+
output "hostname" {
44+
value = join("", aws_route53_record.elasticache.*.fqdn)
45+
description = "DNS hostname"
46+
}
47+
48+
output "memcached_hostname" {
49+
value = join("", aws_route53_record.memcached_route_53.*.fqdn)
50+
description = "DNS hostname"
51+
}
52+
53+
output "redis_ssm_arn" {
54+
value = join("", aws_ssm_parameter.secret-endpoint.*.arn)
55+
description = "A list of all of the parameter values"
56+
}
57+
58+
output "Memcached_ssm_arn" {
59+
value = join("", aws_ssm_parameter.memcached_secret-endpoint.*.arn)
60+
description = "A list of all of the parameter values"
4161
}

0 commit comments

Comments
 (0)