Skip to content

Commit 0ffb034

Browse files
committed
outputs added
1 parent 692b0e3 commit 0ffb034

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

modules/cwagent/outputs.tf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Output for the CloudWatch Agent Service Account manifest
2+
output "cloudwatch_agent_serviceaccount" {
3+
value = kubectl_manifest.cwagent_serviceaccount
4+
description = "CloudWatch Agent Service Account manifest that includes the required Kubernetes Service Account, Cluster Role, and Cluster Role Binding configurations for the CloudWatch Agent."
5+
}
6+
7+
# Output for the CloudWatch Agent ConfigMap
8+
output "cloudwatch_agent_configmap" {
9+
value = kubernetes_config_map_v1.cwagentconfig_configmap
10+
description = "CloudWatch Agent ConfigMap containing the configuration file 'cwagentconfig.json' that will be used by the CloudWatch Agent DaemonSet."
11+
}
12+
13+
# Output for the CloudWatch Agent DaemonSet manifest
14+
output "cloudwatch_agent_daemonset" {
15+
value = kubectl_manifest.cwagent_daemonset
16+
description = "CloudWatch Agent DaemonSet manifest that defines the deployment of the CloudWatch Agent on each node in the Kubernetes cluster."
17+
}

modules/fluent-bit/outputs.tf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Output for the Fluent Bit ConfigMap
2+
output "fluent_bit_configmap" {
3+
value = kubernetes_config_map_v1.fluentbit_configmap
4+
description = "Fluent Bit ConfigMap containing the configuration options for the Fluent Bit agent."
5+
}
6+
7+
# Output for the Fluent Bit DaemonSet manifest
8+
output "fluent_bit_daemonset" {
9+
value = kubectl_manifest.fluentbit_resources
10+
description = "Fluent Bit DaemonSet manifest that defines the deployment of the Fluent Bit agent on each node in the Kubernetes cluster."
11+
}
12+
13+
# Output for Fluent Bit HTTP server configuration
14+
output "fluent_bit_http_server" {
15+
value = var.fluent_bit_http_server
16+
description = "HTTP server configuration for Fluent Bit, specifying the server to send logs."
17+
}
18+
19+
# Output for Fluent Bit HTTP port configuration
20+
output "fluent_bit_http_port" {
21+
value = var.fluent_bit_http_port
22+
description = "HTTP port configuration for Fluent Bit, specifying the port used for sending logs."
23+
}
24+
25+
# Output for Fluent Bit read head configuration
26+
output "fluent_bit_read_head" {
27+
value = var.fluent_bit_read_head
28+
description = "Fluent Bit read head configuration, specifying the position in the file where Fluent Bit starts to read logs."
29+
}
30+
31+
# Output for Fluent Bit read tail configuration
32+
output "fluent_bit_read_tail" {
33+
value = var.fluent_bit_read_tail
34+
description = "Fluent Bit read tail configuration, specifying the position in the file where Fluent Bit stops reading logs."
35+
}

outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Output for the CloudWatch Agent module
2+
output "cloudwatch_agent_module_enabled" {
3+
value = var.enable_cwagent
4+
description = "Flag indicating if the CloudWatch Agent module is enabled."
5+
}
6+
7+
# Output for the Fluent Bit module
8+
output "fluent_bit_module_enabled" {
9+
value = var.enable_fluent_bit
10+
description = "Flag indicating if the Fluent Bit module is enabled."
11+
}

0 commit comments

Comments
 (0)