File tree Expand file tree Collapse file tree 5 files changed +54
-4
lines changed
Expand file tree Collapse file tree 5 files changed +54
-4
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change @@ -11,4 +11,14 @@ output "tags" {
1111output "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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -16,4 +16,15 @@ output "redis_endpoint" {
1616output "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}
Original file line number Diff line number Diff line change @@ -38,4 +38,24 @@ output "memcached_arn" {
3838
3939output "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}
You can’t perform that action at this time.
0 commit comments