google-ip-ranges

chadasapp/google-ip-ranges/dns

Terraform Module HCL DNS

Terraform module to dynamically get the CIDR ranges for GSuite services

Install
module "google-ip-ranges" {
source = "chadasapp/google-ip-ranges/dns"
version = "0.0.1"
}
plain text: /constructs/tfmod-chadasapp-google-ip-ranges-dns/install.txt
⭐ Source on GitHub 📦 Registry page
README

Google CIDR Range Terraform module This module queries Google's published CIDR ranges from TXT records attached to several _netblock*.google.com domains. This is the documented process for doing so specifically for outbound SMTP for SPF records, but contains the helpful note that those ranges are utilized for _all_ GSuite services. Basically we take those records, strip out the data we don't want, extract the IPv4 and IPv6 CIDR ranges and return them. Great for AWS Security Groups where you want to whitelist incoming GSuite traffic but don't want to maintain a whitelist by hand. Usage ``hcl module "google_ip_ranges" { source = "github.com/ASAPPinc/terraform-google-ip-ranges?ref=v0.0.1" } resource "aws_security_group" "example" { name = "allow-google-smtp" vpc_id = "vpc-12345" description =

Inputs (1)
NameTypeDescriptionDefault
google_netblock_domainslistThe domains under which Google publishes their CIDR ranges as TXT records. You p[ "_netblocks.google.com", "_netbloc
Outputs (3)
ipv4_cidrs
ipv6_cidrs
all_cidrs
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud DNS
★ Stars0
Forks3
Total downloads794
Inputs1
Outputs3
LicenseMIT
Namespacechadasapp
Updated