terraform-data-looker-ips/outputs.tf

523 lines
15 KiB
Terraform
Raw Normal View History

2019-10-25 06:21:18 +00:00
output "us" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in United States for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.us}"
2019-10-25 06:21:18 +00:00
}
output "ca" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in Canada for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.ca}"
2019-10-25 06:21:18 +00:00
}
output "as" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in Asia for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.as}"
2019-10-25 06:21:18 +00:00
}
output "ie" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in Ireland for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.ie}"
2019-10-25 06:21:18 +00:00
}
output "de" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in Germany for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.de}"
2019-10-25 06:21:18 +00:00
}
output "au" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in Australia for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.au}"
2019-10-25 06:21:18 +00:00
}
output "sa" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP Addresses in South America for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = "${local.sa}"
}
output "aws_ips" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting IP addresses for instances hosted anywhere that were created before 07/07/2020"
2019-11-20 15:35:41 +00:00
value = "${concat(
local.us,
local.ca,
local.as,
local.ie,
local.de,
local.au,
local.sa,
)}"
2019-11-20 15:35:41 +00:00
}
2019-10-25 06:30:45 +00:00
output "us_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in United States for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.us)}"]
}
output "ca_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in Canada for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.ca)}"]
}
output "as_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in Asia for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.as)}"]
}
output "ie_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in Ireland for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.ie)}"]
}
output "de_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in Germany for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.de)}"]
}
output "au_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in Australia for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.au)}"]
}
2019-10-25 06:21:18 +00:00
2019-10-25 06:30:45 +00:00
output "sa_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR in South America for instances hosted on AWS that were created before 07/07/2020"
2019-10-25 06:30:45 +00:00
value = ["${formatlist("%s/32", local.sa)}"]
2019-10-25 06:21:18 +00:00
}
2019-11-20 15:35:41 +00:00
output "aws_cidr" {
2020-07-11 20:56:35 +00:00
description = "Legacy Hosting CIDR for all for instances hosted on AWS that were created before 07/07/2020"
value = "${formatlist("%s/32", concat(
local.us,
local.ca,
local.as,
local.ie,
local.de,
local.au,
local.sa,
))}"
}
# GCP Section Begins
##### GCP IPs #####
// South Carolina
output "gcp_us_east1_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (South Carolina / us-east1)"
value = "${local.gcp-us-east1}"
}
// Northern Virginia
output "gcp_us_east4_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (Northern Virginia / us-east4)"
value = "${local.gcp-us-east4}"
}
2021-05-26 06:26:00 +00:00
// Council Bluffs, Iowa, USA
output "gcp_us_central1_ips" {
description = "IP addresses for instances hosted on GCP (Iowa / gcp-us-central1)"
value = "${local.gcp-us-central1}"
}
// Oregon
output "gcp_us_west1_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (Oregon / us-west1)"
value = "${local.gcp-us-west1}"
}
// Canada/Montreal
output "gcp_northamerica_northeast1_ips" {
description = "IP addresses for instances hosted on GCP (Canada / Montreal / gcp-northamerica-northeast1)"
value = "${local.gcp-northamerica-northeast1}"
}
// London
output "gcp_europe_west2_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (London / europe-west2)"
value = "${local.gcp-europe-west2}"
}
// Frankfurt
output "gcp_europe_west3_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (Frankfurt / europe-west3)"
value = "${local.gcp-europe-west3}"
}
2020-11-25 07:32:16 +00:00
// Eemshaven, Netherlands
output "gcp_europe_west4_ips" {
description = "IP addresses for instances hosted on GCP (Eemshaven / europe-west4)"
value = "${local.gcp-europe-west4}"
}
2021-05-26 06:26:00 +00:00
// Mumbai, India
output "gcp_asia_south_1_ips" {
description = "IP addresses for instances hosted on GCP (Mumbai / asia-south1)"
value = "${local.gcp-asia-south1}"
}
// Taiwan
output "gcp_asia_east1_ips" {
description = "IP addresses for instances hosted on GCP (Taiwan / asia-east1)"
value = "${local.gcp-asia-east1}"
}
// Tokyo
output "gcp_asia_northeast1_ips" {
description = "IP addresses for instances hosted on GCP (Tokyo / gcp-asia-northeast1)"
value = "${local.gcp-asia-northeast1}"
}
2020-05-14 19:16:59 +00:00
// Singapore
output "gcp_asia_southeast1_ips" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP (Singapore / asia-southeast1)"
2020-05-14 19:16:59 +00:00
value = "${local.gcp-asia-southeast1}"
}
// Jakarta
output "gcp_asia_southeast2_ips" {
description = "IP addresses for instances hosted on GCP (Jakarta / asia-southeast2)"
value = "${local.gcp-asia-southeast2}"
}
// Sydney
output "gcp_australia_southeast1_ips" {
description = "IP addresses for instances hosted on GCP (Sydney / australia-southeast1)"
value = "${local.gcp-australia-southeast1}"
}
// São Paulo, Brazil
output "gcp_southamerica_east1_ips" {
description = "IP addresses for instances hosted on GCP (São Paulo / gcp-southamerica-east1)"
value = "${local.gcp-southamerica-east1}"
}
2020-05-14 19:16:59 +00:00
##### GCP CIDRs #####
// South Carolina
output "gcp_us_east1_cidr" {
2020-07-11 20:56:35 +00:00
description = "CIDRs for instances hosted on GCP (South Carolina / us-east1)"
value = ["${formatlist("%s/32", local.gcp-us-east1)}"]
}
// Northern Virginia
output "gcp_us_east4_cidr" {
description = "CIDRs for instances hosted on GCP (Iowa / us-east4)"
value = ["${formatlist("%s/32", local.gcp-us-east4)}"]
}
// Iowa
output "gcp_us_central1_cidr" {
description = "CIDRs for instances hosted on GCP (Iowa / us-central1)"
value = ["${formatlist("%s/32", local.gcp-us-central1)}"]
}
// Oregon
output "gcp_us_west1_cidr" {
2020-07-11 20:56:35 +00:00
description = "CIDRs for instances hosted on GCP (Oregon / us-west1)"
value = ["${formatlist("%s/32", local.gcp-us-west1)}"]
}
// Canada / Montreal
output "gcp_northamerica_northeast1_cidr" {
description = "CIDRs for instances hosted on GCP (Canada / Montreal / gcp-northamerica-northeast1)"
value = ["${formatlist("%s/32", local.gcp-northamerica-northeast1)}"]
}
// London
output "gcp_europe_west2_cidr" {
2020-07-11 20:56:35 +00:00
description = "CIDRs for instances hosted on GCP (London / europe-west2)"
value = ["${formatlist("%s/32", local.gcp-europe-west2)}"]
}
// Frankfurt
output "gcp_europe_west3_cidr" {
2020-07-11 20:56:35 +00:00
description = "CIDRs for instances hosted on GCP (Frankfurt / europe-west3)"
value = ["${formatlist("%s/32", local.gcp-europe-west3)}"]
}
2020-11-25 07:32:16 +00:00
// Eemshaven, Netherlands
output "gcp_europe_west4_cidr" {
description = "CIDRs for instances hosted on GCP (Eemshaven / europe-west4)"
value = ["${formatlist("%s/32", local.gcp-europe-west4)}"]
}
2021-05-26 06:26:00 +00:00
// Mumbai, India
output "gcp_asia_south1_cidr" {
description = "CIDRs for instances hosted on GCP (Mumbai / asia-south1)"
value = ["${formatlist("%s/32", local.gcp-asia-south1)}"]
}
2020-11-25 07:32:16 +00:00
// Taiwan
output "gcp_asia_east1_cidr" {
description = "CIDRs for instances hosted on GCP (Taiwan / asia-east1)"
value = ["${formatlist("%s/32", local.gcp-asia-east1)}"]
}
// Tokyo
output "gcp_asia_northeast1_cidr" {
description = "CIDRs for instances hosted on GCP (Tokyo / asia-northeast1)"
value = ["${formatlist("%s/32", local.gcp-asia-northeast1)}"]
}
2020-05-14 19:16:59 +00:00
// Singapore
output "gcp_asia_southeast1_cidr" {
description = "CIDRs for instances hosted on GCP (Singapore / asia-southeast1)"
value = ["${formatlist("%s/32", local.gcp-asia-southeast1)}"]
}
// Jakarta
output "gcp_asia_southeast2_cidr" {
description = "CIDRs for instances hosted on GCP (Jakarta / asia-southeast2)"
value = ["${formatlist("%s/32", local.gcp-asia-southeast2)}"]
2020-05-14 19:16:59 +00:00
}
// Sydney
output "gcp_australia_southeast1_cidr" {
description = "CIDRs for instances hosted on GCP (Sydney / australia-southeast1)"
value = ["${formatlist("%s/32", local.gcp-australia-southeast1)}"]
}
// São Paulo, Brazil
output "gcp_southamerica_east1_cidr" {
description = "CIDRs for instances hosted on GCP (São Paulo / southamerica-east1)"
value = ["${formatlist("%s/32", local.gcp-southamerica-east1)}"]
}
##### GCP Common ####
output "gcp_cidr" {
2020-07-11 20:56:35 +00:00
description = "IP addresses for instances hosted on GCP in any region."
value = "${formatlist("%s/32", concat(
local.gcp-us-east1,
local.gcp-us-east4,
local.gcp-us-central1,
local.gcp-us-west1,
local.gcp-northamerica-northeast1,
local.gcp-europe-west2,
local.gcp-europe-west3,
2020-11-25 07:32:16 +00:00
local.gcp-europe-west4,
local.gcp-asia-east1,
local.gcp-asia-northeast1,
local.gcp-asia-southeast2,
local.gcp-australia-southeast1,
local.gcp-southamerica-east1
))}"
}
output "gcp_ips" {
2020-07-11 20:56:35 +00:00
description = "Looker IP addresses everywhere (GCP only)."
value = "${concat(
2020-05-14 19:16:59 +00:00
local.gcp-us-east1,
local.gcp-us-east4,
local.gcp-us-central1,
2020-05-14 19:16:59 +00:00
local.gcp-us-west1,
local.gcp-northamerica-northeast1,
2020-05-14 19:16:59 +00:00
local.gcp-europe-west2,
local.gcp-europe-west3,
2020-11-25 07:32:16 +00:00
local.gcp-europe-west4,
local.gcp-asia-east1,
local.gcp-asia-northeast1,
2020-05-14 19:16:59 +00:00
local.gcp-asia-southeast1,
local.gcp-asia-southeast2,
local.gcp-australia-southeast1,
local.gcp-southamerica-east1
)}"
}
2020-07-11 20:56:35 +00:00
##### EKS Section Begins ####
2021-06-18 11:24:54 +00:00
output "eks_us_west_2" {
description = "IP addresses for instances hosted on Amazon EKS in us-west-2 region."
value = "${local.eks-us-west-2}"
}
2020-07-11 20:56:35 +00:00
output "eks_ca_central_1" {
description = "IP addresses for instances hosted on Amazon EKS in ca-central-1 region."
value = "${local.eks-ca-central-1}"
}
2020-07-11 20:56:35 +00:00
output "eks_eu_central_1" {
description = "IP addresses for instances hosted on Amazon EKS in eu-central-1 region."
value = "${local.eks-eu-central-1}"
}
2020-07-11 20:56:35 +00:00
output "eks_ap_northeast_1" {
description = "IP addresses for instances hosted on Amazon EKS in ap-northeast-1 region."
value = "${local.eks-ap-northeast-1}"
}
2020-07-11 20:56:35 +00:00
output "eks_ap_southeast_2" {
description = "IP addresses for instances hosted on Amazon EKS in ap-southeast-2 region."
value = "${local.eks-ap-southeast-2}"
}
2020-07-11 20:56:35 +00:00
output "eks_sa_east_1" {
description = "IP addresses for instances hosted on Amazon EKS in sa-east-1 region."
value = "${local.eks-sa-east-1}"
}
2021-06-18 11:24:54 +00:00
output "eks_us_west_2_cidr" {
description = "CIDRs for instances hosted on Amazon EKS in us-west-2 region"
value = ["${formatlist("%s/32", local.eks-us-west-2)}"]
}
2020-07-11 20:56:35 +00:00
output "eks_ca_central_1_cidr" {
2021-06-18 11:24:54 +00:00
description = "CIDRs for instances hosted on Amazon EKS in ca-central-1 region"
2020-07-11 20:56:35 +00:00
value = ["${formatlist("%s/32", local.eks-ca-central-1)}"]
}
2020-07-11 20:56:35 +00:00
output "eks_eu_central_1_cidr" {
2021-06-18 11:24:54 +00:00
description = "CIDRs for instances hosted on Amazon EKS in eu-central-1 region"
2020-07-11 20:56:35 +00:00
value = ["${formatlist("%s/32", local.eks-eu-central-1)}"]
}
2020-07-11 20:56:35 +00:00
output "eks_ap_northeast_1_cidr" {
2021-06-18 11:24:54 +00:00
description = "CIDRs for instances hosted on Amazon EKS in ap-northeast-1 region"
2020-07-11 20:56:35 +00:00
value = ["${formatlist("%s/32", local.eks-ap-northeast-1)}"]
}
2020-07-11 20:56:35 +00:00
output "eks_ap_southeast_2_cidr" {
2021-06-18 11:24:54 +00:00
description = "CIDRs for instances hosted on Amazon EKS in ap-southeast-2 region"
2020-07-11 20:56:35 +00:00
value = ["${formatlist("%s/32", local.eks-ap-southeast-2)}"]
}
2020-07-11 20:56:35 +00:00
output "eks_sa_east_1_cidr" {
2021-06-18 11:24:54 +00:00
description = "CIDRs for instances hosted on Amazon EKS in sa-east-1 region"
2020-07-11 20:56:35 +00:00
value = ["${formatlist("%s/32", local.eks-sa-east-1)}"]
}
output "eks_ips" {
description = "IP addresses for instances hosted on Amazon EKS across all regions"
value = "${concat(
2021-06-18 11:24:54 +00:00
local.eks-us-west-2,
2020-07-11 20:56:35 +00:00
local.eks-ca-central-1,
local.eks-eu-central-1,
local.eks-ap-northeast-1,
local.eks-ap-southeast-2,
local.eks-sa-east-1,
)}"
}
output "eks_cidr" {
description = "CIDRs for instances hosted on Amazon EKS across all regions"
value = "${formatlist("%s/32", concat(
2021-06-18 11:24:54 +00:00
local.eks-us-west-2,
2020-07-11 20:56:35 +00:00
local.eks-ca-central-1,
local.eks-eu-central-1,
local.eks-ap-northeast-1,
local.eks-ap-southeast-2,
local.eks-sa-east-1,
))}"
}
##### Microsoft Azure IPs ####
// Virginia, USA
output "azure_us_east2_ips" {
description = "IP addresses for instances hosted on Microsoft Azure (Virginia, USA / azure-us-east2)"
value = "${local.azure-us-east2}"
}
2020-07-11 20:56:35 +00:00
##### Microsoft Azure CIDRs #####
// Virginia, USA
output "azure_us_east2_cidr" {
description = "CIDRs for instances hosted on Microsoft Azure (Virginia, USA / azure-us-east2)"
value = ["${formatlist("%s/32", local.azure-us-east2)}"]
}
##### Microsoft Azure Combined ####
output "azure_ips" {
description = "IP addresses for instances hosted on Microsoft Azure across all regions"
value = "${concat(
local.azure-us-east2,
)}"
}
output "azure_cidr" {
description = "CIDRs for instances hosted on Microsoft Azure across all regions"
value = "${formatlist("%s/32", concat(
local.azure-us-east2,
))}"
}
2020-07-11 20:56:35 +00:00
##### Combined AWS+GCP+EKS+Azure #####
2019-11-20 15:35:41 +00:00
output "all_cidr" {
description = "Looker IP addresses everywhere in CIDR (Legacy + GCP + EKS + Azure)"
2019-11-20 15:35:41 +00:00
value = "${formatlist("%s/32", concat(
local.gcp-us-east1,
local.gcp-us-east4,
local.gcp-us-central1,
local.gcp-us-west1,
local.gcp-northamerica-northeast1,
local.gcp-europe-west2,
local.gcp-europe-west3,
2020-11-25 07:32:16 +00:00
local.gcp-europe-west4,
2021-05-26 06:26:00 +00:00
local.gcp-asia-south1,
local.gcp-asia-northeast1,
2020-05-14 19:16:59 +00:00
local.gcp-asia-southeast1,
local.gcp-australia-southeast1,
local.gcp-southamerica-east1,
local.us,
local.ca,
local.as,
local.ie,
local.de,
local.au,
local.sa,
2021-12-21 08:45:22 +00:00
local.eks-us-west-2,
2020-07-11 20:56:35 +00:00
local.eks-ca-central-1,
local.eks-eu-central-1,
local.eks-ap-northeast-1,
local.eks-ap-southeast-2,
local.eks-sa-east-1,
local.azure-us-east2,
))}"
}
output "all_ips" {
description = "Looker IP addresses everywhere (Legacy AWS + GCP + EKS + Azure)"
value = "${concat(
local.gcp-us-east1,
local.gcp-us-east4,
local.gcp-us-central1,
local.gcp-us-west1,
local.gcp-northamerica-northeast1,
local.gcp-europe-west2,
local.gcp-europe-west3,
2020-11-25 07:32:16 +00:00
local.gcp-europe-west4,
2021-05-26 06:26:00 +00:00
local.gcp-asia-south1,
local.gcp-asia-northeast1,
2020-05-14 19:16:59 +00:00
local.gcp-asia-southeast1,
local.gcp-australia-southeast1,
local.gcp-southamerica-east1,
local.us,
local.ca,
local.as,
local.ie,
local.de,
local.au,
local.sa,
2021-12-21 08:45:22 +00:00
local.eks-us-west-2,
2020-07-11 20:56:35 +00:00
local.eks-ca-central-1,
local.eks-eu-central-1,
local.eks-ap-northeast-1,
local.eks-ap-southeast-2,
local.eks-sa-east-1,
local.azure-us-east2,
)}"
2019-11-20 15:35:41 +00:00
}