getVpcInfo

Use this data source to retrieve information about VPC for a CloudAMQP instance.

Only available for CloudAMQP instances hosted in AWS.

Argument reference

  • instance_id - (Required) The CloudAMQP instance identifier.

Attribute reference

  • name - (Computed) The name of the CloudAMQP instance.
  • vpc_subnet - (Computed) Dedicated VPC subnet.
  • owner_id - (Computed) AWS account identifier.
  • security_group_id - (Computed) AWS security group identifier.

Dependency

This data source depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id.

Example Usage

using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;

class MyStack : Stack
{
    public MyStack()
    {
        var vpcInfo = Output.Create(CloudAmqp.GetVpcInfo.InvokeAsync(new CloudAmqp.GetVpcInfoArgs
        {
            InstanceId = cloudamqp_instance.Instance.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudamqp.GetVpcInfo(ctx, &cloudamqp.GetVpcInfoArgs{
			InstanceId: cloudamqp_instance.Instance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_cloudamqp as cloudamqp

vpc_info = cloudamqp.get_vpc_info(instance_id=cloudamqp_instance["instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";

const vpcInfo = cloudamqp.getVpcInfo({
    instanceId: cloudamqp_instance.instance.id,
});

Using getVpcInfo

function getVpcInfo(args: GetVpcInfoArgs, opts?: InvokeOptions): Promise<GetVpcInfoResult>
def get_vpc_info(instance_id: Optional[int] = None,
                 opts: Optional[InvokeOptions] = None) -> GetVpcInfoResult
func GetVpcInfo(ctx *Context, args *GetVpcInfoArgs, opts ...InvokeOption) (*GetVpcInfoResult, error)

Note: This function is named GetVpcInfo in the Go SDK.

public static class GetVpcInfo {
    public static Task<GetVpcInfoResult> InvokeAsync(GetVpcInfoArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

instanceId number

getVpcInfo Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InstanceId int
Name string
OwnerId string
SecurityGroupId string
VpcSubnet string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId int
Name string
OwnerId string
SecurityGroupId string
VpcSubnet string
id string
The provider-assigned unique ID for this managed resource.
instanceId number
name string
ownerId string
securityGroupId string
vpcSubnet string
id str
The provider-assigned unique ID for this managed resource.
instance_id int
name str
owner_id str
security_group_id str
vpc_subnet str

Package Details

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