|
| 1 | +// |
| 2 | +// LB attributes |
| 3 | +// |
| 4 | +output "arn" { |
| 5 | + description = "ARN of the LB itself. Useful for debug output, for example when attaching a WAF." |
| 6 | + value = "${module.lb-https.arn}" |
| 7 | +} |
| 8 | + |
| 9 | +output "dns_name" { |
| 10 | + description = "The DNS name of the LB presumably to be used with a friendlier CNAME." |
| 11 | + value = "${module.lb-https.dns_name}" |
| 12 | +} |
| 13 | + |
| 14 | +output "id" { |
| 15 | + description = "The ID of the LB we created." |
| 16 | + value = "${module.lb-https.id}" |
| 17 | +} |
| 18 | + |
| 19 | +output "zone_id" { |
| 20 | + description = "The zone_id of the LB to assist with creating DNS records." |
| 21 | + value = "${module.lb-https.zone_id}" |
| 22 | +} |
| 23 | + |
| 24 | +# arn_suffix |
| 25 | +# canonical_hosted_zone_id |
| 26 | + |
| 27 | +// |
| 28 | +// LB Listener attributes |
| 29 | +// |
| 30 | +output "listener_http_arns" { |
| 31 | + description = "The ARNs of the HTTP LB Listeners" |
| 32 | + value = "${module.lb-https.listener_http_arns}" |
| 33 | +} |
| 34 | + |
| 35 | +output "listener_http_ids" { |
| 36 | + description = "The IDs of the HTTP LB Listeners" |
| 37 | + value = "${module.lb-https.listener_http_ids}" |
| 38 | +} |
| 39 | + |
| 40 | +output "listener_https_arns" { |
| 41 | + description = "The ARNs of the HTTPS LB Listeners" |
| 42 | + value = "${module.lb-https.listener_https_arns}" |
| 43 | +} |
| 44 | + |
| 45 | +output "listener_https_ids" { |
| 46 | + description = "The IDs of the HTTPS LB Listeners" |
| 47 | + value = "${module.lb-https.listener_https_ids}" |
| 48 | +} |
| 49 | + |
| 50 | +output "listener_tcp_arns" { |
| 51 | + description = "The ARNs of the network TCP LB Listeners" |
| 52 | + value = "${module.lb-https.listener_tcp_arns}" |
| 53 | +} |
| 54 | + |
| 55 | +output "listener_tcp_ids" { |
| 56 | + description = "The IDs of the network TCP LB Listeners" |
| 57 | + value = "${module.lb-https.listener_tcp_ids}" |
| 58 | +} |
| 59 | + |
| 60 | +output "listener_arns" { |
| 61 | + description = "ARNs of all the LB Listeners" |
| 62 | + value = "${module.lb-https.listener_arns}" |
| 63 | +} |
| 64 | + |
| 65 | +output "listener_ids" { |
| 66 | + description = "IDs of all the LB Listeners" |
| 67 | + value = "${module.lb-https.listener_ids}" |
| 68 | +} |
| 69 | + |
| 70 | +// |
| 71 | +// LB Target Group attributes |
| 72 | +// |
| 73 | +output "target_group_http_arns" { |
| 74 | + description = "ARNs of the HTTP target groups. Useful for passing to your Auto Scaling group module." |
| 75 | + value = "${module.lb-https.target_group_http_arns}" |
| 76 | +} |
| 77 | + |
| 78 | +output "target_group_https_arns" { |
| 79 | + description = "ARNs of the HTTPS target groups. Useful for passing to your Auto Scaling group module." |
| 80 | + value = "${module.lb-https.target_group_https_arns}" |
| 81 | +} |
| 82 | + |
| 83 | +output "target_group_tcp_arns" { |
| 84 | + description = "ARNs of the TCP target groups. Useful for passing to your Auto Scaling group module." |
| 85 | + value = "${module.lb-https.target_group_tcp_arns}" |
| 86 | +} |
| 87 | + |
| 88 | +output "target_group_arns" { |
| 89 | + description = "ARNs of all the target groups. Useful for passing to your Auto Scaling group module." |
| 90 | + value = "${module.lb-https.target_group_arns}" |
| 91 | +} |
| 92 | + |
| 93 | +output "target_group_http_ids" { |
| 94 | + description = "IDs of the HTTP target groups" |
| 95 | + value = "${module.lb-https.target_group_http_ids}" |
| 96 | +} |
| 97 | + |
| 98 | +output "target_group_https_ids" { |
| 99 | + description = "IDs of the HTTPS target groups" |
| 100 | + value = "${module.lb-https.target_group_https_ids}" |
| 101 | +} |
| 102 | + |
| 103 | +output "target_group_tcp_ids" { |
| 104 | + description = "IDs of the TCP target groups" |
| 105 | + value = "${module.lb-https.target_group_tcp_ids}" |
| 106 | +} |
| 107 | + |
| 108 | +output "target_group_ids" { |
| 109 | + description = "IDs of all the target groups" |
| 110 | + value = "${module.lb-https.target_group_ids}" |
| 111 | +} |
| 112 | + |
| 113 | +# arn_suffix |
| 114 | +# name |
| 115 | + |
| 116 | +// |
| 117 | +// Misc |
| 118 | +// |
| 119 | +output "principal_account_id" { |
| 120 | + description = "The AWS-owned account given permissions to write your LB logs to S3." |
| 121 | + value = "${module.lb-https.principal_account_id}" |
| 122 | +} |
0 commit comments