Terraform data lookup for Looker IP Ranges
Go to file
Nemo dbe58cbb25 Commit opengraph image for sanity 2020-08-17 17:48:13 +05:30
.github Commit opengraph image for sanity 2020-08-17 17:48:13 +05:30
CHANGELOG.md Version Bump (v1.3.2) 2020-08-10 13:03:53 +05:30
LICENSE Update LICENSE date 2020-05-08 07:50:47 +05:30
README.md Version Bump (v1.3.2) 2020-08-10 13:03:53 +05:30
locals.tf New IPs for us-east4, us-central1, us-west1,europe-west2 2020-08-10 13:03:07 +05:30
main.tf Initial commit 💥 2019-10-25 11:51:18 +05:30
outputs.tf Adds Iowa, Tokyo, and São Paulo regions (all GCP) 2020-08-05 18:49:26 +05:30
variables.tf Initial commit 💥 2019-10-25 11:51:18 +05:30

README.md

terraform-data-looker-ips

Looker's IP addresses, as per their documentation.

All network traffic from Looker will come from one of the following IP addresses, based on the host+region where your Looker instance is hosted. Please whitelist each of the IP addresses in the appropriate region listed below. These whitelist IP addresses also apply for SFTP and SMTP destinations. Starting April 2020, Looker-hosted instances are hosted on GCP by default.

This module supports all 3 modes of hosting:

  • Legacy AWS
  • Next generation GCP
  • Next generation EKS

Usage

module "looker-ips" {
  source  = "captn3m0/looker-ips/data"
  version = "1.3.2"
}

resource "aws_security_group_rule" "allow_all_from_looker_aws_us" {
  type            = "ingress"
  from_port       = 0
  to_port         = 443
  protocol        = "tcp"
  cidr_blocks     = ["${module.looker-ips.us_cidr}"]
  security_group_id = "sg-123456"
}

Outputs

  • All output variables are lists.
  • For instances hosted in "Legacy AWS hosting" is based on 2 letter ISO country codes and common continent codes.
  • For instances hosted in GCP, the corresponding region codes are used.
  • For instances hosted in EKS, the AWS region code is prefixed with eks-.
  • Every output variable is available in 2 formats - list of IP addresses, or list of CIDRs. The CIDRs are generated using a /32 suffix on all IPs.

To pick the correct output variable, check the below and search for the corresponding term the variable description.

  1. If your instance is hosted on AWS that was created before 07/07/2020 - Search for "AWS"
  2. If your instance is hosted on EKS and was created after 07/0/72020 - Search for "EKS"
  3. If your instance is hosted on GCP - Search for GCP

If you are unsure which region your instance is in, please reach out to Looker support.

Name Description
all_cidr Looker IP addresses everywhere in CIDR (Legacy + GCP + EKS)
all_ips Looker IP addresses everywhere (Legacy AWS + GCP + EKS)
eks_ap_northeast_1 IP addresses for instances hosted on Amazon EKS in ap-northeast-1 region.
eks_ap_northeast_1_cidr CIDRs for instances hosted on Amazon EKS in eks-ap-northeast-1 region
eks_ap_southeast_2 IP addresses for instances hosted on Amazon EKS in ap-southeast-2 region.
eks_ap_southeast_2_cidr CIDRs for instances hosted on Amazon EKS in eks-ap-southeast-2 region
eks_ca_central_1 IP addresses for instances hosted on Amazon EKS in ca-central-1 region.
eks_ca_central_1_cidr CIDRs for instances hosted on Amazon EKS in eks-ca-central-1 region
eks_cidr CIDRs for instances hosted on Amazon EKS across all regions
eks_eu_central_1 IP addresses for instances hosted on Amazon EKS in eu-central-1 region.
eks_eu_central_1_cidr CIDRs for instances hosted on Amazon EKS in eks-eu-central-1 region
eks_eu_west_1 IP addresses for instances hosted on Amazon EKS in eu-west-1 region.
eks_eu_west_1_cidr CIDRs for instances hosted on Amazon EKS in eks-eu-west-1 region
eks_ips IP addresses for instances hosted on Amazon EKS across all regions
eks_sa_east_1 IP addresses for instances hosted on Amazon EKS in sa-east-1 region.
eks_sa_east_1_cidr CIDRs for instances hosted on Amazon EKS in eks-sa-east-1 region
gcp_asia_northeast1_cidr CIDRs for instances hosted on GCP (Tokyo / asia-northeast1)
gcp_asia_northeast1_ips IP addresses for instances hosted on GCP (Tokyo / gcp-asia-northeast1)
gcp_asia_southeast1_cidr CIDRs for instances hosted on GCP (South Carolina / us-east1)
gcp_asia_southeast1_ips IP addresses for instances hosted on GCP (Singapore / asia-southeast1)
gcp_australia_southeast1_cidr CIDRs for instances hosted on GCP (Sydney / australia-southeast1)
gcp_australia_southeast1_ips IP addresses for instances hosted on GCP (Sydney / australia-southeast1)
gcp_cidr IP addresses for instances hosted on GCP in any region.
gcp_europe_west2_cidr CIDRs for instances hosted on GCP (London / europe-west2)
gcp_europe_west2_ips IP addresses for instances hosted on GCP (London / europe-west2)
gcp_europe_west3_cidr CIDRs for instances hosted on GCP (Frankfurt / europe-west3)
gcp_europe_west3_ips IP addresses for instances hosted on GCP (Frankfurt / europe-west3)
gcp_ips Looker IP addresses everywhere (GCP only).
gcp_northamerica_northeast1_cidr CIDRs for instances hosted on GCP (Canada / Montreal / gcp-northamerica-northeast1)
gcp_northamerica_northeast1_ips IP addresses for instances hosted on GCP (Canada / Montreal / gcp-northamerica-northeast1)
gcp_southamerica_east1_cidr CIDRs for instances hosted on GCP (São Paulo / southamerica-east1)
gcp_southamerica_east1_ips IP addresses for instances hosted on GCP (São Paulo / gcp-southamerica-east1)
gcp_us_central1_cidr CIDRs for instances hosted on GCP (Iowa / us-central1)
gcp_us_central1_ips IP addresses for instances hosted on GCP (Iowa / gcp-us-central1)
gcp_us_east1_cidr CIDRs for instances hosted on GCP (South Carolina / us-east1)
gcp_us_east1_ips IP addresses for instances hosted on GCP (South Carolina / us-east1)
gcp_us_east4_cidr CIDRs for instances hosted on GCP (Iowa / us-east4)
gcp_us_east4_ips IP addresses for instances hosted on GCP (Northern Virginia / us-east4)
gcp_us_west1_cidr CIDRs for instances hosted on GCP (Oregon / us-west1)
gcp_us_west1_ips IP addresses for instances hosted on GCP (Oregon / us-west1)
as Legacy Hosting IP Addresses in Asia for instances hosted on AWS that were created before 07/07/2020
as_cidr Legacy Hosting CIDR in Asia for instances hosted on AWS that were created before 07/07/2020
au Legacy Hosting IP Addresses in Australia for instances hosted on AWS that were created before 07/07/2020
au_cidr Legacy Hosting CIDR in Australia for instances hosted on AWS that were created before 07/07/2020
aws_cidr Legacy Hosting CIDR for all for instances hosted on AWS that were created before 07/07/2020
aws_ips Legacy Hosting IP addresses for instances hosted anywhere that were created before 07/07/2020
ca Legacy Hosting IP Addresses in Canada for instances hosted on AWS that were created before 07/07/2020
ca_cidr Legacy Hosting CIDR in Canada for instances hosted on AWS that were created before 07/07/2020
de Legacy Hosting IP Addresses in Germany for instances hosted on AWS that were created before 07/07/2020
de_cidr Legacy Hosting CIDR in Germany for instances hosted on AWS that were created before 07/07/2020
ie Legacy Hosting IP Addresses in Ireland for instances hosted on AWS that were created before 07/07/2020
ie_cidr Legacy Hosting CIDR in Ireland for instances hosted on AWS that were created before 07/07/2020
sa Legacy Hosting IP Addresses in South America for instances hosted on AWS that were created before 07/07/2020
sa_cidr Legacy Hosting CIDR in South America for instances hosted on AWS that were created before 07/07/2020
us Legacy Hosting IP Addresses in United States for instances hosted on AWS that were created before 07/07/2020
us_cidr Legacy Hosting CIDR in United States for instances hosted on AWS that were created before 07/07/2020

Changelog

See CHANGELOG.md

LICENSE

Licensed under MIT. See nemo.mit-license.org for complete text.