File tree 1 file changed +0
-22
lines changed
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -23,25 +23,3 @@ resource "kubernetes_config_map" "fluent_bit_cluster_info" {
23
23
" logs.region" = data.aws_region.current.name
24
24
}
25
25
}
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
- }
You can’t perform that action at this time.
0 commit comments