Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data source for IP ranges #27

Closed
wants to merge 1 commit into from
Closed

Add data source for IP ranges #27

wants to merge 1 commit into from

Conversation

karnauskas
Copy link

Regarding Issue #6, I'm contributing to data.cloudflare_ip_ranges resource to get v4 and v6 CIDR blocks of Cloudflare IPs.

Example output:

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

v4_ranges = [
    103.21.244.0/22,
    103.22.200.0/22,
    103.31.4.0/22,
    104.16.0.0/12,
    108.162.192.0/18,
    131.0.72.0/22,
    141.101.64.0/18,
    162.158.0.0/15,
    172.64.0.0/13,
    173.245.48.0/20,
    188.114.96.0/20,
    190.93.240.0/20,
    197.234.240.0/22,
    198.41.128.0/17
]
v6_ranges = [
    2400:cb00::/32,
    2405:8100::/32,
    2405:b500::/32,
    2606:4700::/32,
    2803:f800::/32,
    2a06:98c0::/29,
    2c0f:f248::/32
]

Copy link

@elithrar elithrar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (as a Cloudflare dev). Appreciate the tests.

@karnauskas
Copy link
Author

What's the release procedure of this provider? When it will be released to standard provider repository?

@radeksimko
Copy link
Contributor

Hi @karnauskas
sorry for the delay in reviewing this. I just merged #28 as it also contained docs and some extra error checks.

Thanks for all the effort you invested into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants