1. Packages
  2. Heroku Provider
  3. API Docs
  4. space
  5. getPeeringInfo
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

heroku.space.getPeeringInfo

Explore with Pulumi AI

heroku logo
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

    Use this data source to get peering information about a Heroku Private Space.

    Example Usage

    # Look up a Heroku Private Space's peering info. 
    data "heroku_space_peering_info" "default" {
      name   = "my-secret-space"
    }
    
    # Initiate a VPC peering connection request.
    resource "aws_vpc_peering_connection" "foo" {
      peer_owner_id = data.heroku_space_peering_info.default.aws_account_id
      peer_vpc_id   = data.heroku_space_peering_info.default.vpc_id
      vpc_id        = aws_vpc.foo.id
    }
    

    Using getPeeringInfo

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPeeringInfo(args: GetPeeringInfoArgs, opts?: InvokeOptions): Promise<GetPeeringInfoResult>
    function getPeeringInfoOutput(args: GetPeeringInfoOutputArgs, opts?: InvokeOptions): Output<GetPeeringInfoResult>
    def get_peering_info(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPeeringInfoResult
    def get_peering_info_output(name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetPeeringInfoResult]
    func GetPeeringInfo(ctx *Context, args *GetPeeringInfoArgs, opts ...InvokeOption) (*GetPeeringInfoResult, error)
    func GetPeeringInfoOutput(ctx *Context, args *GetPeeringInfoOutputArgs, opts ...InvokeOption) GetPeeringInfoResultOutput

    > Note: This function is named GetPeeringInfo in the Go SDK.

    public static class GetPeeringInfo 
    {
        public static Task<GetPeeringInfoResult> InvokeAsync(GetPeeringInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetPeeringInfoResult> Invoke(GetPeeringInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPeeringInfoResult> getPeeringInfo(GetPeeringInfoArgs args, InvokeOptions options)
    public static Output<GetPeeringInfoResult> getPeeringInfo(GetPeeringInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: heroku:space/getPeeringInfo:getPeeringInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Heroku Private Space.
    Name string
    The name of the Heroku Private Space.
    name String
    The name of the Heroku Private Space.
    name string
    The name of the Heroku Private Space.
    name str
    The name of the Heroku Private Space.
    name String
    The name of the Heroku Private Space.

    getPeeringInfo Result

    The following output properties are available:

    AwsAccountId string
    The AWS account ID that the Heroku Private Space runs in.
    AwsRegion string
    The AWS region that the Heroku Private Space runs in.
    DynoCidrBlocks List<string>
    The CIDR blocks that the Dynos run on.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    UnavailableCidrBlocks List<string>
    A list of unavailable CIDR blocks.
    VpcCidr string
    The CIDR block of the VPC ID.
    VpcId string
    The VPC ID of the Heroku Private Space.
    AwsAccountId string
    The AWS account ID that the Heroku Private Space runs in.
    AwsRegion string
    The AWS region that the Heroku Private Space runs in.
    DynoCidrBlocks []string
    The CIDR blocks that the Dynos run on.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    UnavailableCidrBlocks []string
    A list of unavailable CIDR blocks.
    VpcCidr string
    The CIDR block of the VPC ID.
    VpcId string
    The VPC ID of the Heroku Private Space.
    awsAccountId String
    The AWS account ID that the Heroku Private Space runs in.
    awsRegion String
    The AWS region that the Heroku Private Space runs in.
    dynoCidrBlocks List<String>
    The CIDR blocks that the Dynos run on.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    unavailableCidrBlocks List<String>
    A list of unavailable CIDR blocks.
    vpcCidr String
    The CIDR block of the VPC ID.
    vpcId String
    The VPC ID of the Heroku Private Space.
    awsAccountId string
    The AWS account ID that the Heroku Private Space runs in.
    awsRegion string
    The AWS region that the Heroku Private Space runs in.
    dynoCidrBlocks string[]
    The CIDR blocks that the Dynos run on.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    unavailableCidrBlocks string[]
    A list of unavailable CIDR blocks.
    vpcCidr string
    The CIDR block of the VPC ID.
    vpcId string
    The VPC ID of the Heroku Private Space.
    aws_account_id str
    The AWS account ID that the Heroku Private Space runs in.
    aws_region str
    The AWS region that the Heroku Private Space runs in.
    dyno_cidr_blocks Sequence[str]
    The CIDR blocks that the Dynos run on.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    unavailable_cidr_blocks Sequence[str]
    A list of unavailable CIDR blocks.
    vpc_cidr str
    The CIDR block of the VPC ID.
    vpc_id str
    The VPC ID of the Heroku Private Space.
    awsAccountId String
    The AWS account ID that the Heroku Private Space runs in.
    awsRegion String
    The AWS region that the Heroku Private Space runs in.
    dynoCidrBlocks List<String>
    The CIDR blocks that the Dynos run on.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    unavailableCidrBlocks List<String>
    A list of unavailable CIDR blocks.
    vpcCidr String
    The CIDR block of the VPC ID.
    vpcId String
    The VPC ID of the Heroku Private Space.

    Package Details

    Repository
    heroku pulumiverse/pulumi-heroku
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the heroku Terraform Provider.
    heroku logo
    Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns