2016-08-05 17:12:46 +02:00
|
|
|
---
|
|
|
|
layout: "fastly"
|
|
|
|
page_title: "Fastly: fastly_ip_ranges"
|
|
|
|
sidebar_current: "docs-fastly-datasource-ip_ranges"
|
|
|
|
description: |-
|
|
|
|
Get information on Fastly IP ranges.
|
|
|
|
---
|
|
|
|
|
|
|
|
# fastly\_ip_ranges
|
|
|
|
|
|
|
|
Use this data source to get the [IP ranges][1] of Fastly edge nodes.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
2017-02-18 23:48:50 +01:00
|
|
|
data "fastly_ip_ranges" "fastly" {}
|
2016-08-05 17:12:46 +02:00
|
|
|
|
|
|
|
resource "aws_security_group" "from_fastly" {
|
|
|
|
name = "from_fastly"
|
|
|
|
|
|
|
|
ingress {
|
2017-02-18 23:48:50 +01:00
|
|
|
from_port = "443"
|
|
|
|
to_port = "443"
|
|
|
|
protocol = "tcp"
|
|
|
|
cidr_blocks = ["${data.fastly_ip_ranges.fastly.cidr_blocks}"]
|
2016-08-05 17:12:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
* `cidr_blocks` - The lexically ordered list of CIDR blocks.
|
|
|
|
|
|
|
|
[1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges
|