Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getInstance

Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.

Argument reference

  • instance_id - (Required) The CloudAMQP instance identifier.

Attribute reference

  • name - (Computed) The name of the CloudAMQP instance.
  • plan - (Computed) The subscription plan for the CloudAMQP instance.
  • region - (Computed) The cloud platform and region that host the CloudAMQP instance, {platform}::{region}.
  • vpc_subnet - (Computed) Dedicated VPC subnet configured for the CloudAMQP instance.
  • nodes - (Computed) Number of nodes in the cluster of the CloudAMQP instance.
  • rmq_version - (Computed) The version of installed Rabbit MQ.
  • url - (Computed/Sensitive) The AMQP url, used by clients to connect for pub/sub.
  • apikey - (Computed/Sensitive) The API key to secondary API handing alarms, integration etc.
  • tags - (Computed) Tags the CloudAMQP instance with categories.
  • host - (Computed) The hostname for the CloudAMQP instance.
  • vhost - (Computed) The virtual host configured in Rabbit MQ.

Using getInstance

function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
def get_instance(instance_id: Optional[int] = None, vpc_subnet: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetInstanceResult
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)

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

public static class GetInstance {
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

instanceId number
vpcSubnet string

getInstance Result

The following output properties are available:

Apikey string
Dedicated bool
Host string
Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Name string
Nodes int
Plan string
Region string
RmqVersion string
Tags List<string>
Url string
Vhost string
VpcSubnet string
Apikey string
Dedicated bool
Host string
Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Name string
Nodes int
Plan string
Region string
RmqVersion string
Tags []string
Url string
Vhost string
VpcSubnet string
apikey string
dedicated boolean
host string
id string

The provider-assigned unique ID for this managed resource.

instanceId number
name string
nodes number
plan string
region string
rmqVersion string
tags string[]
url string
vhost string
vpcSubnet string
apikey str
dedicated bool
host str
id str

The provider-assigned unique ID for this managed resource.

instance_id int
name str
nodes int
plan str
region str
rmq_version str
tags Sequence[str]
url str
vhost 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.