Show / Hide Table of Contents

Class GetFastlyIpRanges

Inheritance
System.Object
GetFastlyIpRanges
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Fastly
Assembly: Pulumi.Fastly.dll
Syntax
public static class GetFastlyIpRanges

Methods

View Source

InvokeAsync(InvokeOptions)

Use this data source to get the IP ranges of Fastly edge nodes.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;
using Fastly = Pulumi.Fastly;

class MyStack : Stack
{
public MyStack()
{
    var fastly = Output.Create(Fastly.GetFastlyIpRanges.InvokeAsync());
    var fromFastly = new Aws.Ec2.SecurityGroup("fromFastly", new Aws.Ec2.SecurityGroupArgs
    {
        Ingress = 
        {
            new Aws.Ec2.Inputs.SecurityGroupIngressArgs
            {
                CidrBlocks = fastly.Apply(fastly => fastly.CidrBlocks),
                FromPort = "443",
                Ipv6CidrBlocks = fastly.Apply(fastly => fastly.Ipv6CidrBlocks),
                Protocol = "tcp",
                ToPort = "443",
            },
        },
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetFastlyIpRangesResult> InvokeAsync(InvokeOptions options = null)
Parameters
Type Name Description
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetFastlyIpRangesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.