Created
March 30, 2024 02:33
-
-
Save nivleshc/f7ba577efd041d7f21a40a4ed5466b34 to your computer and use it in GitHub Desktop.
Contents of grafana/locals.tf from the visualise-network-traffic repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
account_id = data.aws_caller_identity.current.account_id | |
region = data.aws_region.current.name | |
loggroup_name = var.grafana_server_details["data_source"]["default_log_group_name"] | |
cloudwatch_ds_uid = var.grafana_server_details["data_source"]["uid"] | |
cloudwatch_org_id = var.grafana_server_details["data_source"]["org_id"] | |
traffic_dest_cidr = var.grafana_server_details["data_source"]["traffic_dest_cidr"] | |
traffic_dest_prefix = join(".", [split(".", local.traffic_dest_cidr)[0], split(".", local.traffic_dest_cidr)[1], split(".", local.traffic_dest_cidr)[2]]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment