Skip to content

Commit bed238b

Browse files
authored
Update cloudwatch_eks_pod_logs.tf
1 parent 18f77e9 commit bed238b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

cloudwatch_eks_pod_logs.tf

-22
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,3 @@ resource "kubernetes_config_map" "fluent_bit_cluster_info" {
2323
"logs.region" = data.aws_region.current.name
2424
}
2525
}
26-
27-
data "http" "fluent_bit_yaml" {
28-
url = "https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/k8s/${local.eks_pod_logs_cloudwatch_fluent_bit_version}/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/fluent-bit/fluent-bit.yaml"
29-
}
30-
31-
32-
resource "null_resource" "eks_pod_cloudwatch" {
33-
count = var.cloudwatch_pod_logs_enabled ? 1 : 0
34-
35-
triggers = {
36-
manifest_sha1 = sha1(data.http.fluent_bit_yaml.body)
37-
}
38-
39-
provisioner "local-exec" {
40-
command = "kubectl replace -f https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/k8s/${local.eks_pod_logs_cloudwatch_fluent_bit_version}/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/fluent-bit/fluent-bit.yaml"
41-
}
42-
43-
depends_on = [
44-
kubernetes_namespace.amazon_cloudwatch,
45-
kubernetes_config_map.fluent_bit_cluster_info
46-
]
47-
}

0 commit comments

Comments
 (0)