GetIpRanges

Use this data source to get the IP ranges of various AWS products and services. For more information about the contents of this data source and required JSON syntax if referencing a custom URL, see the AWS IP Address Ranges documention.

Using GetIpRanges

function getIpRanges(args: GetIpRangesArgs, opts?: InvokeOptions): Promise<GetIpRangesResult>
function  get_ip_ranges(regions=None, services=None, url=None, opts=None)
func GetIpRanges(ctx *Context, args *GetIpRangesArgs, opts ...InvokeOption) (*GetIpRangesResult, error)
public static class GetIpRanges {
    public static Task<GetIpRangesResult> InvokeAsync(GetIpRangesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Services List<string>

Filter IP ranges by services. Valid items are amazon (for amazon.com), amazon_connect, api_gateway, cloud9, cloudfront, codebuild, dynamodb, ec2, ec2_instance_connect, globalaccelerator, route53, route53_healthchecks, s3 and workspaces_gateways. See the [service attribute][2] documentation for other possible values.

Regions List<string>

Filter IP ranges by regions (or include all regions, if omitted). Valid items are global (for cloudfront) as well as all AWS regions (e.g. eu-central-1)

Url string

Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to https://ip-ranges.amazonaws.com/ip-ranges.json.

Services []string

Filter IP ranges by services. Valid items are amazon (for amazon.com), amazon_connect, api_gateway, cloud9, cloudfront, codebuild, dynamodb, ec2, ec2_instance_connect, globalaccelerator, route53, route53_healthchecks, s3 and workspaces_gateways. See the [service attribute][2] documentation for other possible values.

Regions []string

Filter IP ranges by regions (or include all regions, if omitted). Valid items are global (for cloudfront) as well as all AWS regions (e.g. eu-central-1)

Url string

Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to https://ip-ranges.amazonaws.com/ip-ranges.json.

services string[]

Filter IP ranges by services. Valid items are amazon (for amazon.com), amazon_connect, api_gateway, cloud9, cloudfront, codebuild, dynamodb, ec2, ec2_instance_connect, globalaccelerator, route53, route53_healthchecks, s3 and workspaces_gateways. See the [service attribute][2] documentation for other possible values.

regions string[]

Filter IP ranges by regions (or include all regions, if omitted). Valid items are global (for cloudfront) as well as all AWS regions (e.g. eu-central-1)

url string

Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to https://ip-ranges.amazonaws.com/ip-ranges.json.

services List[str]

Filter IP ranges by services. Valid items are amazon (for amazon.com), amazon_connect, api_gateway, cloud9, cloudfront, codebuild, dynamodb, ec2, ec2_instance_connect, globalaccelerator, route53, route53_healthchecks, s3 and workspaces_gateways. See the [service attribute][2] documentation for other possible values.

regions List[str]

Filter IP ranges by regions (or include all regions, if omitted). Valid items are global (for cloudfront) as well as all AWS regions (e.g. eu-central-1)

url str

Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to https://ip-ranges.amazonaws.com/ip-ranges.json.

GetIpRanges Result

The following output properties are available:

CidrBlocks List<string>

The lexically ordered list of CIDR blocks.

CreateDate string

The publication time of the IP ranges (e.g. 2016-08-03-23-46-05).

Id string

The provider-assigned unique ID for this managed resource.

Ipv6CidrBlocks List<string>

The lexically ordered list of IPv6 CIDR blocks.

Services List<string>
SyncToken int

The publication time of the IP ranges, in Unix epoch time format (e.g. 1470267965).

Regions List<string>
Url string
CidrBlocks []string

The lexically ordered list of CIDR blocks.

CreateDate string

The publication time of the IP ranges (e.g. 2016-08-03-23-46-05).

Id string

The provider-assigned unique ID for this managed resource.

Ipv6CidrBlocks []string

The lexically ordered list of IPv6 CIDR blocks.

Services []string
SyncToken int

The publication time of the IP ranges, in Unix epoch time format (e.g. 1470267965).

Regions []string
Url string
cidrBlocks string[]

The lexically ordered list of CIDR blocks.

createDate string

The publication time of the IP ranges (e.g. 2016-08-03-23-46-05).

id string

The provider-assigned unique ID for this managed resource.

ipv6CidrBlocks string[]

The lexically ordered list of IPv6 CIDR blocks.

services string[]
syncToken number

The publication time of the IP ranges, in Unix epoch time format (e.g. 1470267965).

regions string[]
url string
cidr_blocks List[str]

The lexically ordered list of CIDR blocks.

create_date str

The publication time of the IP ranges (e.g. 2016-08-03-23-46-05).

id str

The provider-assigned unique ID for this managed resource.

ipv6_cidr_blocks List[str]

The lexically ordered list of IPv6 CIDR blocks.

services List[str]
sync_token float

The publication time of the IP ranges, in Unix epoch time format (e.g. 1470267965).

regions List[str]
url str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.