mirror of
https://github.com/captn3m0/terraform-data-looker-ips.git
synced 2024-09-28 22:22:59 +00:00
Compare commits
No commits in common. "master" and "1.1.2" have entirely different histories.
3
.github/FUNDING.yml
vendored
3
.github/FUNDING.yml
vendored
@ -1,3 +0,0 @@
|
||||
ko_fi: captn3m0
|
||||
liberapay: captn3m0
|
||||
github: captn3m0
|
BIN
.github/og.png
vendored
BIN
.github/og.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 117 KiB |
216
CHANGELOG.md
216
CHANGELOG.md
@ -1,216 +0,0 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased][unreleased]
|
||||
|
||||
## [3.0.0] - 2022-02-02
|
||||
### Removed
|
||||
- IPs/CIDRs for instances hosted on Amazon EKS in us-east-2 region (Ohio) have been removed.
|
||||
|
||||
## [2.0.9] - 2022-01-12
|
||||
### Removed
|
||||
- Removed a duplicate IP address from `gcp-europe-west2` (London)
|
||||
|
||||
## [2.0.8] - 2022-01-11
|
||||
### Added
|
||||
- 3 new IPs added to `gcp-us-east4` (Ashburn, Northern Virginia)
|
||||
- 3 new IPs added to `gcp-us-central1` (Council Bluffs, Iowa)
|
||||
- 4 new IPs added to `gcp-us-west1` (The Dalles, Oregon)
|
||||
- 5 new IPs added to `gcp-europe-west2` (London, England, UK)
|
||||
- 3 new IPs added to `gcp-europe-west3` (Frankfurt, Germany)
|
||||
- 1 new IP added to `gcp-asia-northeast1` (Tokyo, Japan)
|
||||
- 1 new IP added to `eks-eu-central-1` (Frankfurt)
|
||||
|
||||
## [2.0.7] - 2021-12-27
|
||||
### Added
|
||||
- 3 new IPs added to `gcp-us-west1`
|
||||
|
||||
## [2.0.6] - 2021-12-21
|
||||
### Added
|
||||
- 6 new IPs added to `eks-eu-central-1`
|
||||
- 6 new IPs added to `eks-ca-central-1`
|
||||
- New region: `eks-us-east-2` with 3 IPs
|
||||
- 1 new IP for `gcp-europe-west3`
|
||||
### Removed
|
||||
- 1 IP removed from `gcp-us-east1` (`35.196.227.117`)
|
||||
- 1 IP removed from `gcp-europe-west2` (`34.142.123.96`)
|
||||
|
||||
## [2.0.5] - 2021-11-23
|
||||
### Removed
|
||||
- All IPs that were added in [2.0.3]. These changes were reverted by Looker and were confirmed as a mistake.
|
||||
### Added
|
||||
- 1 IP added in `gcp-europe-west2`
|
||||
- 1 IP that was removed in `gcp-us-east1` in [2.0.3] (`35.196.227.117`).
|
||||
|
||||
## [2.0.4] - 2021-11-07
|
||||
### Removed
|
||||
- 1 IP removed for `gcp-us-east1`
|
||||
### Added
|
||||
- 1 IP added for `gcp-us-west1`
|
||||
- 1 IP added for `gcp-asia-northeast1`
|
||||
- 6 IPs added for `eks-ca-central-1`
|
||||
- 6 IPs added for `eks-eu-central-1`
|
||||
|
||||
## [2.0.3] - 2021-07-13
|
||||
### Removed
|
||||
- 1 IP removed for `gcp-us-west1`
|
||||
### Added
|
||||
- 1 IP added for `gcp-us-west1`
|
||||
|
||||
## [2.0.2] - 2021-06-18
|
||||
### Added
|
||||
- New Region for EKS: `us-west-2`
|
||||
|
||||
## [2.0.1] - 2021-06-11
|
||||
### Added
|
||||
- New IP for `gcp-us-east4`
|
||||
|
||||
## [2.0.0][2.0.0] - 2021-05-26
|
||||
### Added
|
||||
- GCP/`asia-south-1` (Mumbai, India)
|
||||
### Removed
|
||||
- Removed: `EKS-us-east-1` ("For the list of IP addresses to add to your allowlist for this region, contact Looker Support")
|
||||
- Removed: `EKS-eu-west-1` ("For the list of IP addresses to add to your allowlist for this region, contact Looker Support")
|
||||
|
||||
## [1.4.0][1.4.0] - 2021-04-24
|
||||
### Added
|
||||
- 1 IP added for instances hosted on Microsoft Azure `us-east2` region.
|
||||
|
||||
## [1.3.8][1.3.8] - 2021-02-10
|
||||
|
||||
### Changed
|
||||
- 3 IPs removed and 3 IPs added for instances hosted on Amazon EKS `us-east-1` region.
|
||||
|
||||
## [1.3.7][1.3.7] - 2020-12-24
|
||||
|
||||
### Added
|
||||
- 3 new IPs for the Europe (Ireland) (`eu-west-1`) Instances Hosted on Amazon Elastic Kubernetes Service (`eks-eu-west-1`)
|
||||
|
||||
## [1.3.6][1.3.6] - 2020-11-26
|
||||
|
||||
### Removed
|
||||
- 12 IPs removed from various GCP and AWS zones.
|
||||
|
||||
## [1.3.5][1.3.5] - 2020-11-25
|
||||
|
||||
### Changed
|
||||
- 2 IPs moved from Frankfurt (`europe-west3`) to Eemshaven (`europe-west4`)
|
||||
|
||||
## [1.3.4][1.3.4] - 2020-11-05
|
||||
|
||||
### Fixed
|
||||
- Outpus `aws_ips` and `gcp_asia_southeast1_cidr` now point to the correct IPs.
|
||||
|
||||
### Added
|
||||
- 2 new regions for GCP: `asia-east1` and `asia-southeast2`.
|
||||
|
||||
### Changed
|
||||
- New IPs for EKS in `us-east-1`
|
||||
|
||||
## [1.3.3][1.3.3] - 2020-11-03
|
||||
### Changed
|
||||
- New IPs for EKS in `us-east-1`
|
||||
|
||||
## [1.3.2][1.3.2] - 2020-08-10
|
||||
|
||||
### Changed
|
||||
- New IPs for GCP (us-east4, us-central1, us-west1, europe-west2)
|
||||
|
||||
## [1.3.1][1.3.1] - 2020-08-05
|
||||
|
||||
### Added
|
||||
- Adds Iowa, Tokyo, and São Paulo regions (all GCP)
|
||||
- The Sydney and Singapore regions went missing on the website for a while, added them back.
|
||||
|
||||
## [1.3.0][1.3.0] - 2020-07-12
|
||||
|
||||
### Added
|
||||
- Adds support for new EKS hosting
|
||||
|
||||
## [1.2.3][1.2.3] - 2020-06-21
|
||||
|
||||
### Added
|
||||
- New Looker IP for GCP/Canada region
|
||||
- Fixes output variable name for Sydney regions
|
||||
|
||||
## [1.2.2][1.2.2] - 2020-06-13
|
||||
|
||||
### Added
|
||||
- New Looker IP for GCP/Sydney region
|
||||
|
||||
## [1.2.1][1.2.1] - 2020-05-15
|
||||
|
||||
### Added
|
||||
|
||||
- New Looker IP for GCP/Singapore Region
|
||||
|
||||
### Fixed
|
||||
|
||||
- `gcp_ips` output was incorrect, didn't have GCP IPs.
|
||||
|
||||
## [1.2.0][1.2.0] - 2020-04-1
|
||||
|
||||
### Added
|
||||
|
||||
- Added Looker IP addresses for GCP hosted instances.
|
||||
|
||||
## [1.1.2][1.1.2] - 2020-03-20
|
||||
|
||||
### Added
|
||||
|
||||
- Added a new IP Address for Looker Germany
|
||||
|
||||
## [1.1.1][1.1.1] - 2019-11-20
|
||||
|
||||
### Added
|
||||
|
||||
- Adds outputs for `all_ips` and `all_cidrs`
|
||||
|
||||
## [1.1.0][1.1.0] - 2019-10-25
|
||||
|
||||
### Added
|
||||
|
||||
- Adds support for CIDRs for various regions.
|
||||
|
||||
## [1.0.0][1.0.0] - 2019-10-25
|
||||
|
||||
## Added
|
||||
|
||||
- Initial Release
|
||||
|
||||
[unreleased]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v3.0.0...HEAD
|
||||
[3.0.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.9...v3.0.0
|
||||
[2.0.9]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.8...v2.0.9
|
||||
[2.0.8]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.7...v2.0.8
|
||||
[2.0.7]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.6...v2.0.7
|
||||
[2.0.6]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.5...v2.0.6
|
||||
[2.0.5]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.4...v2.0.5
|
||||
[2.0.4]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.3...v2.0.4
|
||||
[2.0.3]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.2...v2.0.3
|
||||
[2.0.2]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.1...v2.0.2
|
||||
[2.0.1]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v2.0.0...v2.0.1
|
||||
[2.0.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.4.0...v2.0.0
|
||||
[1.4.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.8...v1.4.0
|
||||
[1.3.8]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.7...v1.3.8
|
||||
[1.3.7]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.6...v1.3.7
|
||||
[1.3.6]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.5...v1.3.6
|
||||
[1.3.5]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.4...v1.3.5
|
||||
[1.3.4]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.3...v1.3.4
|
||||
[1.3.3]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.2...v1.3.3
|
||||
[1.3.2]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.1...v1.3.2
|
||||
[1.3.1]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.3.0...v1.3.1
|
||||
[1.3.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.2.3...v1.3.0
|
||||
[1.2.3]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.2.2...v1.2.3
|
||||
[1.2.2]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.2.1...v1.2.2
|
||||
[1.2.1]: https://github.com/captn3m0/terraform-data-looker-ips/compare/v1.2.1...v1.2.2
|
||||
[1.2.1]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.2.0...v1.2.1
|
||||
[1.2.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.1.2...1.2.0
|
||||
[1.1.2]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.1.1...1.1.1
|
||||
[1.1.2]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.1.1...1.1.2
|
||||
[1.1.1]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.1.0...1.1.1
|
||||
[1.1.0]: https://github.com/captn3m0/terraform-data-looker-ips/compare/1.0.0...1.1.0
|
||||
[1.0.0]: https://github.com/captn3m0/terraform-data-looker-ips/releases/tag/1.0.0
|
@ -1,128 +0,0 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
coc@captnemo.in.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright 2021 Abhay Rana
|
||||
Copyright 2019 Abhay Rana
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
137
README.md
137
README.md
@ -1,25 +1,19 @@
|
||||
# terraform-data-looker-ips ![License:MIT](https://img.shields.io/badge/license-MIT-blue.svg) ![GitHub last commit](https://img.shields.io/github/last-commit/captn3m0/terraform-data-looker-ips) ![GitHub Release Date](https://img.shields.io/github/release-date/captn3m0/terraform-data-looker-ips) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/captn3m0/terraform-data-looker-ips)
|
||||
# terraform-data-looker-ips
|
||||
|
||||
Looker's IP addresses, as per [their documentation](https://docs.looker.com/setup-and-management/enabling-secure-db).
|
||||
Looker's IP addresses,
|
||||
as per [their documentation](https://docs.looker.com/setup-and-management/enabling-secure-db).
|
||||
|
||||
This module supports all 3 modes of hosting:
|
||||
|
||||
- Legacy AWS
|
||||
- Next generation GCP
|
||||
- Next generation EKS
|
||||
- Microsoft Azure
|
||||
|
||||
Please make sure to read the Looker documentation before you start using this module.
|
||||
> All network traffic from Looker will come from one of the following IP addresses, based on the 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.
|
||||
|
||||
# Usage
|
||||
|
||||
```hcl
|
||||
```
|
||||
module "looker-ips" {
|
||||
source = "captn3m0/looker-ips/data"
|
||||
version = "v2.0.9"
|
||||
version = "1.1.2"
|
||||
}
|
||||
|
||||
resource "aws_security_group_rule" "allow_all_from_looker_aws_us" {
|
||||
resource "aws_security_group_rule" "allow_all_from_looker_us" {
|
||||
type = "ingress"
|
||||
from_port = 0
|
||||
to_port = 443
|
||||
@ -31,104 +25,27 @@ resource "aws_security_group_rule" "allow_all_from_looker_aws_us" {
|
||||
|
||||
## Outputs
|
||||
|
||||
- All output variables are lists.
|
||||
- For instances hosted on "Legacy AWS hosting" is based on 2 letter [ISO country codes][3166] and [common continent codes](https://datahub.io/core/continent-codes#readme).
|
||||
- For instances hosted on GCP, [the corresponding region codes are used](https://cloud.google.com/compute/docs/regions-zones).
|
||||
- For instances hosted on EKS, the AWS region code is prefixed with `eks-`.
|
||||
- For instances hosted on Microsoft Azure, the Azure region code is prefixed with `azure-`.
|
||||
- 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.
|
||||
All output variables are lists. The output names are based on 2 letter
|
||||
[ISO country codes][3166] and [common continent codes](https://datahub.io/core/continent-codes#readme)
|
||||
|
||||
To pick the correct output variable, check the below and search for the corresponding term the variable description.
|
||||
|
||||
1. Instances that are hosted on AWS and that were created before 07/07/2020. - Search for "AWS"
|
||||
2. Instances that are hosted on Amazon EKS. If your instance is in EKS/`eu-west-1` or EKS/`us-east-1`, you will need to contact Looker support to get your IP range.
|
||||
3. For default-Looker-hosted instances on GCP. - Search for "GCP"
|
||||
4. For instances is hosted on Microsoft Azure - Search for Azure.
|
||||
|
||||
If you are unsure which region your instance is in, please reach out to Looker support.
|
||||
|
||||
## Requirements
|
||||
|
||||
Supports Terraform 0.11 and above.
|
||||
|
||||
## Outputs
|
||||
|
||||
| Name | Description |
|
||||
|------|-------------|
|
||||
| all\_cidr | Looker IP addresses everywhere in CIDR (Legacy + GCP + EKS + Azure) |
|
||||
| all\_ips | Looker IP addresses everywhere (Legacy AWS + GCP + EKS + Azure) |
|
||||
| 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 |
|
||||
| azure\_cidr | CIDRs for instances hosted on Microsoft Azure across all regions |
|
||||
| azure\_ips | IP addresses for instances hosted on Microsoft Azure across all regions |
|
||||
| azure\_us\_east2\_cidr | CIDRs for instances hosted on Microsoft Azure (Virginia, USA / azure-us-east2) |
|
||||
| azure\_us\_east2\_ips | IP addresses for instances hosted on Microsoft Azure (Virginia, USA / azure-us-east2) |
|
||||
| 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 |
|
||||
| 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 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 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 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 eu-central-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 sa-east-1 region |
|
||||
| eks\_us\_east\_2 | IP addresses for instances hosted on Amazon EKS in us-east-2 region. |
|
||||
| eks\_us\_east\_2\_cidr | CIDRs for instances hosted on Amazon EKS in us-east-2 region |
|
||||
| eks\_us\_west\_2 | IP addresses for instances hosted on Amazon EKS in us-west-2 region. |
|
||||
| eks\_us\_west\_2\_cidr | CIDRs for instances hosted on Amazon EKS in us-west-2 region |
|
||||
| gcp\_asia\_east1\_cidr | CIDRs for instances hosted on GCP (Taiwan / asia-east1) |
|
||||
| gcp\_asia\_east1\_ips | IP addresses for instances hosted on GCP (Taiwan / asia-east1) |
|
||||
| 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\_south1\_cidr | CIDRs for instances hosted on GCP (Mumbai / asia-south1) |
|
||||
| gcp\_asia\_south\_1\_ips | IP addresses for instances hosted on GCP (Mumbai / asia-south1) |
|
||||
| gcp\_asia\_southeast1\_cidr | CIDRs for instances hosted on GCP (Singapore / asia-southeast1) |
|
||||
| gcp\_asia\_southeast1\_ips | IP addresses for instances hosted on GCP (Singapore / asia-southeast1) |
|
||||
| gcp\_asia\_southeast2\_cidr | CIDRs for instances hosted on GCP (Jakarta / asia-southeast2) |
|
||||
| gcp\_asia\_southeast2\_ips | IP addresses for instances hosted on GCP (Jakarta / asia-southeast2) |
|
||||
| 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\_europe\_west4\_cidr | CIDRs for instances hosted on GCP (Eemshaven / europe-west4) |
|
||||
| gcp\_europe\_west4\_ips | IP addresses for instances hosted on GCP (Eemshaven / europe-west4) |
|
||||
| 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) |
|
||||
| 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](CHANGELOG.md)
|
||||
| Name | Description |
|
||||
| ---------- | -------------------------------------------- |
|
||||
| `as` | Looker IP Addresses in Asia |
|
||||
| `as_cidr` | Looker IP Addresses in Asia in CIDR |
|
||||
| `au` | Looker IP Addresses in Australia |
|
||||
| `au_cidr` | Looker IP Addresses in Australia in CIDR |
|
||||
| `ca` | Looker IP Addresses in Canada |
|
||||
| `ca_cidr` | Looker IP Addresses in Canada in CIDR |
|
||||
| `de` | Looker IP Addresses in Germany |
|
||||
| `de_cidr` | Looker IP Addresses in Germany in CIDR |
|
||||
| `ie` | Looker IP Addresses in Ireland |
|
||||
| `ie_cidr` | Looker IP Addresses in Ireland in CIDR |
|
||||
| `sa` | Looker IP Addresses in South America |
|
||||
| `sa_cidr` | Looker IP Addresses in South America in CIDR |
|
||||
| `us` | Looker IP Addresses in United States |
|
||||
| `us_cidr` | Looker IP Addresses in United States in CIDR |
|
||||
| `all_ips` | Looker IP addresses everywhere |
|
||||
| `all_cidr` | Looker IP addresses everywhere in CIDR |
|
||||
|
||||
# LICENSE
|
||||
|
||||
|
188
locals.tf
188
locals.tf
@ -1,139 +1,4 @@
|
||||
locals {
|
||||
# South Carolina
|
||||
gcp-us-east1 = [
|
||||
"35.196.243.26",
|
||||
"35.196.36.95",
|
||||
]
|
||||
|
||||
# Northern Virginia
|
||||
gcp-us-east4 = [
|
||||
"35.186.176.0",
|
||||
"34.86.189.113",
|
||||
"34.86.136.190",
|
||||
"35.245.211.109",
|
||||
"35.221.3.163",
|
||||
"35.194.74.185",
|
||||
"34.86.52.188",
|
||||
"35.245.82.73",
|
||||
"34.86.118.239",
|
||||
"35.245.177.112",
|
||||
"34.86.214.226",
|
||||
"35.221.30.177",
|
||||
"35.221.62.218",
|
||||
"34.86.34.135",
|
||||
"35.236.240.168",
|
||||
]
|
||||
|
||||
# Iowa
|
||||
gcp-us-central1 = [
|
||||
"34.70.246.244",
|
||||
"34.69.207.176",
|
||||
"34.70.128.74",
|
||||
"35.239.118.197",
|
||||
]
|
||||
|
||||
# Oregon
|
||||
gcp-us-west1 = [
|
||||
"34.82.227.133",
|
||||
"35.247.124.130",
|
||||
"34.82.120.25",
|
||||
"35.247.5.99",
|
||||
"35.197.64.57",
|
||||
"35.233.172.23",
|
||||
"35.233.249.160",
|
||||
"35.247.55.33",
|
||||
"35.247.117.0",
|
||||
"35.247.61.151",
|
||||
"34.82.193.215",
|
||||
"35.233.222.226",
|
||||
"35.185.199.172",
|
||||
"34.83.94.151",
|
||||
"35.203.184.48",
|
||||
"34.83.138.105",
|
||||
"35.185.212.2",
|
||||
"34.82.56.47",
|
||||
"34.127.100.106",
|
||||
"34.83.236.166",
|
||||
]
|
||||
|
||||
# Canada / Montreal
|
||||
gcp-northamerica-northeast1 = [
|
||||
"35.203.16.100",
|
||||
]
|
||||
|
||||
# London, England, UK
|
||||
gcp-europe-west2 = [
|
||||
"35.246.117.58",
|
||||
"35.246.10.206",
|
||||
"35.197.222.220",
|
||||
"35.242.138.133",
|
||||
"35.189.111.173",
|
||||
"34.89.25.5",
|
||||
"34.105.181.133",
|
||||
"34.89.127.51",
|
||||
"34.105.209.44",
|
||||
"34.89.124.139",
|
||||
"34.105.219.154",
|
||||
"34.142.123.96",
|
||||
"34.142.77.18",
|
||||
"34.105.131.133",
|
||||
"34.89.54.84",
|
||||
]
|
||||
|
||||
# Frankfurt, Germany
|
||||
gcp-europe-west3 = [
|
||||
"34.89.161.120",
|
||||
"35.198.128.126",
|
||||
"34.159.224.187",
|
||||
"34.159.10.59",
|
||||
"34.159.72.77",
|
||||
]
|
||||
|
||||
# Eemshaven, Netherlands
|
||||
gcp-europe-west4 = [
|
||||
"35.204.222.110",
|
||||
]
|
||||
|
||||
# Mumbai, India
|
||||
gcp-asia-south1 = [
|
||||
"35.200.135.236",
|
||||
]
|
||||
|
||||
# Changhua County, Taiwan
|
||||
gcp-asia-east1 = [
|
||||
"104.199.206.209",
|
||||
"34.80.173.212",
|
||||
"35.185.137.114",
|
||||
]
|
||||
|
||||
# Tokyo, Japan
|
||||
gcp-asia-northeast1 = [
|
||||
"34.84.255.194",
|
||||
"35.221.107.211",
|
||||
]
|
||||
|
||||
# Singapore
|
||||
gcp-asia-southeast1 = [
|
||||
"35.185.184.54",
|
||||
]
|
||||
|
||||
# Jakarta, Indonesia
|
||||
gcp-asia-southeast2 = [
|
||||
"34.101.158.88",
|
||||
"34.101.157.238",
|
||||
"34.101.184.52",
|
||||
]
|
||||
|
||||
# Sydney
|
||||
gcp-australia-southeast1 = [
|
||||
"35.189.54.47",
|
||||
]
|
||||
|
||||
# São Paulo, Brazil
|
||||
gcp-southamerica-east1 = [
|
||||
"35.199.102.40",
|
||||
]
|
||||
|
||||
us = [
|
||||
"54.208.10.167",
|
||||
"54.209.116.191",
|
||||
@ -160,6 +25,7 @@ locals {
|
||||
de = [
|
||||
"18.196.243.94",
|
||||
"18.184.246.171",
|
||||
"34.89.161.120",
|
||||
]
|
||||
|
||||
au = [
|
||||
@ -171,56 +37,4 @@ locals {
|
||||
"52.67.8.103",
|
||||
"54.233.74.59",
|
||||
]
|
||||
|
||||
/**
|
||||
* Use these IP addresses for all instances hosted on Amazon EKS
|
||||
* that were created on or after 07/07/2020.
|
||||
*/
|
||||
|
||||
eks-us-west-2 = [
|
||||
"44.237.129.32",
|
||||
"54.184.191.250",
|
||||
"35.81.99.30",
|
||||
]
|
||||
eks-ca-central-1 = [
|
||||
"52.60.157.61",
|
||||
"35.182.169.25",
|
||||
"52.60.59.128",
|
||||
"35.182.207.128",
|
||||
"15.222.172.64",
|
||||
"3.97.27.51",
|
||||
"35.183.191.133",
|
||||
"15.222.86.123",
|
||||
"52.60.52.14",
|
||||
]
|
||||
eks-eu-central-1 = [
|
||||
"18.157.231.108",
|
||||
"18.157.207.33",
|
||||
"18.157.64.198",
|
||||
"18.198.116.133",
|
||||
"3.121.148.178",
|
||||
"3.126.54.154",
|
||||
"18.193.187.100",
|
||||
"18.196.108.86",
|
||||
"18.198.157.149",
|
||||
"18.193.187.100",
|
||||
]
|
||||
eks-ap-northeast-1 = [
|
||||
"54.250.91.57",
|
||||
"13.112.30.110",
|
||||
"54.92.76.241",
|
||||
]
|
||||
eks-ap-southeast-2 = [
|
||||
"13.238.132.174",
|
||||
"3.105.238.71",
|
||||
"3.105.113.36",
|
||||
]
|
||||
eks-sa-east-1 = [
|
||||
"54.232.58.181",
|
||||
"54.232.58.98",
|
||||
"177.71.134.208",
|
||||
]
|
||||
azure-us-east2 = [
|
||||
"52.147.190.201",
|
||||
]
|
||||
}
|
||||
|
491
outputs.tf
491
outputs.tf
@ -1,522 +1,97 @@
|
||||
output "us" {
|
||||
description = "Legacy Hosting IP Addresses in United States for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in United States"
|
||||
value = "${local.us}"
|
||||
}
|
||||
|
||||
output "ca" {
|
||||
description = "Legacy Hosting IP Addresses in Canada for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Canada"
|
||||
value = "${local.ca}"
|
||||
}
|
||||
|
||||
output "as" {
|
||||
description = "Legacy Hosting IP Addresses in Asia for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Asia"
|
||||
value = "${local.as}"
|
||||
}
|
||||
|
||||
output "ie" {
|
||||
description = "Legacy Hosting IP Addresses in Ireland for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Ireland"
|
||||
value = "${local.ie}"
|
||||
}
|
||||
|
||||
output "de" {
|
||||
description = "Legacy Hosting IP Addresses in Germany for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Germany"
|
||||
value = "${local.de}"
|
||||
}
|
||||
|
||||
output "au" {
|
||||
description = "Legacy Hosting IP Addresses in Australia for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Australia"
|
||||
value = "${local.au}"
|
||||
}
|
||||
|
||||
output "sa" {
|
||||
description = "Legacy Hosting IP Addresses in South America for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in South America"
|
||||
value = "${local.sa}"
|
||||
}
|
||||
|
||||
output "aws_ips" {
|
||||
description = "Legacy Hosting IP addresses for instances hosted anywhere that were created before 07/07/2020"
|
||||
output "all_ips" {
|
||||
description = "Looker IP addresses everywhere"
|
||||
|
||||
value = "${concat(
|
||||
local.us,
|
||||
local.ca,
|
||||
local.as,
|
||||
local.ie,
|
||||
local.de,
|
||||
local.au,
|
||||
local.sa,
|
||||
)}"
|
||||
local.us,
|
||||
local.ca,
|
||||
local.as,
|
||||
local.ie,
|
||||
local.de,
|
||||
local.au,
|
||||
local.sa,
|
||||
)}"
|
||||
}
|
||||
|
||||
output "us_cidr" {
|
||||
description = "Legacy Hosting CIDR in United States for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in United States in CIDR"
|
||||
value = ["${formatlist("%s/32", local.us)}"]
|
||||
}
|
||||
|
||||
output "ca_cidr" {
|
||||
description = "Legacy Hosting CIDR in Canada for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Canada in CIDR"
|
||||
value = ["${formatlist("%s/32", local.ca)}"]
|
||||
}
|
||||
|
||||
output "as_cidr" {
|
||||
description = "Legacy Hosting CIDR in Asia for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Asia in CIDR"
|
||||
value = ["${formatlist("%s/32", local.as)}"]
|
||||
}
|
||||
|
||||
output "ie_cidr" {
|
||||
description = "Legacy Hosting CIDR in Ireland for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Ireland in CIDR"
|
||||
value = ["${formatlist("%s/32", local.ie)}"]
|
||||
}
|
||||
|
||||
output "de_cidr" {
|
||||
description = "Legacy Hosting CIDR in Germany for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Germany in CIDR"
|
||||
value = ["${formatlist("%s/32", local.de)}"]
|
||||
}
|
||||
|
||||
output "au_cidr" {
|
||||
description = "Legacy Hosting CIDR in Australia for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in Australia in CIDR"
|
||||
value = ["${formatlist("%s/32", local.au)}"]
|
||||
}
|
||||
|
||||
output "sa_cidr" {
|
||||
description = "Legacy Hosting CIDR in South America for instances hosted on AWS that were created before 07/07/2020"
|
||||
description = "Looker IP Addresses in South America in CIDR"
|
||||
value = ["${formatlist("%s/32", local.sa)}"]
|
||||
}
|
||||
|
||||
output "aws_cidr" {
|
||||
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" {
|
||||
description = "IP addresses for instances hosted on GCP (South Carolina / us-east1)"
|
||||
value = "${local.gcp-us-east1}"
|
||||
}
|
||||
|
||||
// Northern Virginia
|
||||
output "gcp_us_east4_ips" {
|
||||
description = "IP addresses for instances hosted on GCP (Northern Virginia / us-east4)"
|
||||
value = "${local.gcp-us-east4}"
|
||||
}
|
||||
|
||||
// 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" {
|
||||
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" {
|
||||
description = "IP addresses for instances hosted on GCP (London / europe-west2)"
|
||||
value = "${local.gcp-europe-west2}"
|
||||
}
|
||||
|
||||
// Frankfurt
|
||||
output "gcp_europe_west3_ips" {
|
||||
description = "IP addresses for instances hosted on GCP (Frankfurt / europe-west3)"
|
||||
value = "${local.gcp-europe-west3}"
|
||||
}
|
||||
|
||||
// Eemshaven, Netherlands
|
||||
output "gcp_europe_west4_ips" {
|
||||
description = "IP addresses for instances hosted on GCP (Eemshaven / europe-west4)"
|
||||
value = "${local.gcp-europe-west4}"
|
||||
}
|
||||
|
||||
// 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}"
|
||||
}
|
||||
|
||||
// Singapore
|
||||
output "gcp_asia_southeast1_ips" {
|
||||
description = "IP addresses for instances hosted on GCP (Singapore / asia-southeast1)"
|
||||
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}"
|
||||
}
|
||||
|
||||
|
||||
##### GCP CIDRs #####
|
||||
|
||||
// South Carolina
|
||||
output "gcp_us_east1_cidr" {
|
||||
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" {
|
||||
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" {
|
||||
description = "CIDRs for instances hosted on GCP (London / europe-west2)"
|
||||
value = ["${formatlist("%s/32", local.gcp-europe-west2)}"]
|
||||
}
|
||||
|
||||
// Frankfurt
|
||||
output "gcp_europe_west3_cidr" {
|
||||
description = "CIDRs for instances hosted on GCP (Frankfurt / europe-west3)"
|
||||
value = ["${formatlist("%s/32", local.gcp-europe-west3)}"]
|
||||
}
|
||||
|
||||
// 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)}"]
|
||||
}
|
||||
|
||||
// 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)}"]
|
||||
}
|
||||
|
||||
// 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)}"]
|
||||
}
|
||||
|
||||
// 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)}"]
|
||||
}
|
||||
|
||||
// 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" {
|
||||
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,
|
||||
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" {
|
||||
description = "Looker IP addresses everywhere (GCP only)."
|
||||
|
||||
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,
|
||||
local.gcp-europe-west4,
|
||||
local.gcp-asia-east1,
|
||||
local.gcp-asia-northeast1,
|
||||
local.gcp-asia-southeast1,
|
||||
local.gcp-asia-southeast2,
|
||||
local.gcp-australia-southeast1,
|
||||
local.gcp-southamerica-east1
|
||||
)}"
|
||||
}
|
||||
|
||||
##### EKS Section Begins ####
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
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)}"]
|
||||
}
|
||||
|
||||
output "eks_ca_central_1_cidr" {
|
||||
description = "CIDRs for instances hosted on Amazon EKS in ca-central-1 region"
|
||||
value = ["${formatlist("%s/32", local.eks-ca-central-1)}"]
|
||||
}
|
||||
|
||||
output "eks_eu_central_1_cidr" {
|
||||
description = "CIDRs for instances hosted on Amazon EKS in eu-central-1 region"
|
||||
value = ["${formatlist("%s/32", local.eks-eu-central-1)}"]
|
||||
}
|
||||
|
||||
output "eks_ap_northeast_1_cidr" {
|
||||
description = "CIDRs for instances hosted on Amazon EKS in ap-northeast-1 region"
|
||||
value = ["${formatlist("%s/32", local.eks-ap-northeast-1)}"]
|
||||
}
|
||||
|
||||
output "eks_ap_southeast_2_cidr" {
|
||||
description = "CIDRs for instances hosted on Amazon EKS in ap-southeast-2 region"
|
||||
value = ["${formatlist("%s/32", local.eks-ap-southeast-2)}"]
|
||||
}
|
||||
|
||||
output "eks_sa_east_1_cidr" {
|
||||
description = "CIDRs for instances hosted on Amazon EKS in sa-east-1 region"
|
||||
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(
|
||||
local.eks-us-west-2,
|
||||
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(
|
||||
local.eks-us-west-2,
|
||||
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}"
|
||||
}
|
||||
|
||||
|
||||
##### 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,
|
||||
))}"
|
||||
}
|
||||
|
||||
##### Combined AWS+GCP+EKS+Azure #####
|
||||
|
||||
output "all_cidr" {
|
||||
description = "Looker IP addresses everywhere in CIDR (Legacy + GCP + EKS + Azure)"
|
||||
description = "Looker IP addresses everywhere in CIDR"
|
||||
|
||||
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,
|
||||
local.gcp-europe-west4,
|
||||
local.gcp-asia-south1,
|
||||
local.gcp-asia-northeast1,
|
||||
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,
|
||||
local.eks-us-west-2,
|
||||
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,
|
||||
local.gcp-europe-west4,
|
||||
local.gcp-asia-south1,
|
||||
local.gcp-asia-northeast1,
|
||||
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,
|
||||
local.eks-us-west-2,
|
||||
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,
|
||||
)}"
|
||||
local.us,
|
||||
local.ca,
|
||||
local.as,
|
||||
local.ie,
|
||||
local.de,
|
||||
local.au,
|
||||
local.sa,
|
||||
))}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user