Initial commit 💥

This commit is contained in:
Nemo 2019-10-25 11:51:18 +05:30
commit 50fb3010c6
5 changed files with 113 additions and 0 deletions

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

40
README.md Normal file
View File

@ -0,0 +1,40 @@
# 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"
version = "1.0.0"
}
resource "aws_security_group_rule" "allow_all_from_looker_us" {
type = "ingress"
from_port = 0
to_port = 443
protocol = "tcp"
cidr_blocks = ["${module.looker-ips.us}"]
security_group_id = "sg-123456"
}
```
## Outputs
| Name | Description |
| ---- | ------------------------------------ |
| as | Looker IP Addresses in Asia |
| au | Looker IP Addresses in Australia |
| ca | Looker IP Addresses in Canada |
| de | Looker IP Addresses in Germany |
| ie | Looker IP Addresses in Ireland |
| sa | Looker IP Addresses in South America |
| us | Looker IP Addresses in United States |
# LICENSE
Licensed under MIT. See [nemo.mit-license.org](https://nemo.mit-license.org) for complete text.

1
main.tf Normal file
View File

@ -0,0 +1 @@

65
outputs.tf Normal file
View File

@ -0,0 +1,65 @@
output "us" {
description = "Looker IP Addresses in United States"
value = [
"54.208.10.167",
"54.209.116.191",
"52.1.5.228",
"52.1.157.156",
"54.83.113.5",
]
}
output "ca" {
description = "Looker IP Addresses in Canada"
value = [
"99.79.117.127",
"35.182.216.56",
]
}
output "as" {
description = "Looker IP Addresses in Asia"
value = [
"52.68.85.40",
"52.68.108.109",
]
}
output "ie" {
description = "Looker IP Addresses in Ireland"
value = [
"52.16.163.151",
"52.16.174.170",
]
}
output "de" {
description = "Looker IP Addresses in Germany"
value = [
"18.196.243.94",
"18.184.246.171",
]
}
output "au" {
description = "Looker IP Addresses in Australia"
value = [
"52.65.128.170",
"52.65.124.87",
]
}
output "sa" {
description = "Looker IP Addresses in South America"
value = [
"52.67.8.103",
"54.233.74.59",
]
}

0
variables.tf Normal file
View File