terraform-data-looker-ips/README.md

50 lines
1.9 KiB
Markdown
Raw Normal View History

2019-10-25 06:21:18 +00:00
# terraform-data-looker-ips
Looker's IP addresses,
as per [their documentation](https://docs.looker.com/setup-and-management/enabling-secure-db).
> 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
```
module "looker-ips" {
source = "captn3m0/looker-ips/data"
2019-10-25 06:30:45 +00:00
version = "1.1.0"
2019-10-25 06:21:18 +00:00
}
resource "aws_security_group_rule" "allow_all_from_looker_us" {
type = "ingress"
from_port = 0
to_port = 443
protocol = "tcp"
2019-10-25 06:30:45 +00:00
cidr_blocks = ["${module.looker-ips.us_cidr}"]
2019-10-25 06:21:18 +00:00
security_group_id = "sg-123456"
}
```
## Outputs
2019-10-25 06:30:45 +00:00
All output variables are lists.
| 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 |
2019-10-25 06:21:18 +00:00
# LICENSE
Licensed under MIT. See [nemo.mit-license.org](https://nemo.mit-license.org) for complete text.