ExtraDiskSize

This resource allows you to expand the disk with additional storage capacity. There is no downtime when expanding the disk.

Only available for dedicated subscription plans hosted at Amazon Web Services (AWS) at this time.

⚠️ Due to restrictions from cloud providers, it’s only possible to resize the disk every 8 hours.

Pricing is available at cloudamqp.com.

Example Usage

using System.Collections.Generic;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;

return await Deployment.RunAsync(() => 
{
    // Instance
    var instance = new CloudAmqp.Instance("instance", new()
    {
        Plan = "squirrel-1",
        Region = "amazon-web-services::us-west-2",
        RmqVersion = "3.10.1",
    });

    // Resize disk with 25 extra GB
    var resizeDisk = new CloudAmqp.ExtraDiskSize("resizeDisk", new()
    {
        InstanceId = instance.Id,
        ExtraDiskSizeGb = 25,
    });

    var nodes = CloudAmqp.GetNodes.Invoke(new()
    {
        InstanceId = 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 {
		instance, err := cloudamqp.NewInstance(ctx, "instance", &cloudamqp.InstanceArgs{
			Plan:       pulumi.String("squirrel-1"),
			Region:     pulumi.String("amazon-web-services::us-west-2"),
			RmqVersion: pulumi.String("3.10.1"),
		})
		if err != nil {
			return err
		}
		_, err = cloudamqp.NewExtraDiskSize(ctx, "resizeDisk", &cloudamqp.ExtraDiskSizeArgs{
			InstanceId:    instance.ID(),
			ExtraDiskSize: pulumi.Int(25),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.Instance;
import com.pulumi.cloudamqp.InstanceArgs;
import com.pulumi.cloudamqp.ExtraDiskSize;
import com.pulumi.cloudamqp.ExtraDiskSizeArgs;
import com.pulumi.cloudamqp.CloudamqpFunctions;
import com.pulumi.cloudamqp.inputs.GetNodesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var instance = new Instance("instance", InstanceArgs.builder()        
            .plan("squirrel-1")
            .region("amazon-web-services::us-west-2")
            .rmqVersion("3.10.1")
            .build());

        var resizeDisk = new ExtraDiskSize("resizeDisk", ExtraDiskSizeArgs.builder()        
            .instanceId(instance.id())
            .extraDiskSize(25)
            .build());

        final var nodes = CloudamqpFunctions.getNodes(GetNodesArgs.builder()
            .instanceId(instance.id())
            .build());

    }
}
import pulumi
import pulumi_cloudamqp as cloudamqp

# Instance
instance = cloudamqp.Instance("instance",
    plan="squirrel-1",
    region="amazon-web-services::us-west-2",
    rmq_version="3.10.1")
# Resize disk with 25 extra GB
resize_disk = cloudamqp.ExtraDiskSize("resizeDisk",
    instance_id=instance.id,
    extra_disk_size=25)
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";

// Instance
const instance = new cloudamqp.Instance("instance", {
    plan: "squirrel-1",
    region: "amazon-web-services::us-west-2",
    rmqVersion: "3.10.1",
});
// Resize disk with 25 extra GB
const resizeDisk = new cloudamqp.ExtraDiskSize("resizeDisk", {
    instanceId: instance.id,
    extraDiskSize: 25,
});
const nodes = instance.id.apply(id => cloudamqp.getNodesOutput({
    instanceId: id,
}));
resources:
  # Instance
  instance:
    type: cloudamqp:Instance
    properties:
      plan: squirrel-1
      region: amazon-web-services::us-west-2
      rmqVersion: 3.10.1
  # Resize disk with 25 extra GB
  resizeDisk:
    type: cloudamqp:ExtraDiskSize
    properties:
      instanceId: ${instance.id}
      extraDiskSize: 25
variables:
  nodes:
    Fn::Invoke:
      Function: cloudamqp:getNodes
      Arguments:
        instanceId: ${instance.id}

Create ExtraDiskSize Resource

new ExtraDiskSize(name: string, args: ExtraDiskSizeArgs, opts?: CustomResourceOptions);
@overload
def ExtraDiskSize(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  extra_disk_size: Optional[int] = None,
                  instance_id: Optional[int] = None)
@overload
def ExtraDiskSize(resource_name: str,
                  args: ExtraDiskSizeArgs,
                  opts: Optional[ResourceOptions] = None)
func NewExtraDiskSize(ctx *Context, name string, args ExtraDiskSizeArgs, opts ...ResourceOption) (*ExtraDiskSize, error)
public ExtraDiskSize(string name, ExtraDiskSizeArgs args, CustomResourceOptions? opts = null)
public ExtraDiskSize(String name, ExtraDiskSizeArgs args)
public ExtraDiskSize(String name, ExtraDiskSizeArgs args, CustomResourceOptions options)
type: cloudamqp:ExtraDiskSize
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ExtraDiskSizeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ExtraDiskSizeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ExtraDiskSizeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ExtraDiskSizeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ExtraDiskSizeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ExtraDiskSize Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ExtraDiskSize resource accepts the following input properties:

ExtraDiskSizeGb int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

InstanceId int

The CloudAMQP instance ID.

ExtraDiskSize int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

InstanceId int

The CloudAMQP instance ID.

extraDiskSize Integer

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId Integer

The CloudAMQP instance ID.

extraDiskSize number

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId number

The CloudAMQP instance ID.

extra_disk_size int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instance_id int

The CloudAMQP instance ID.

extraDiskSize Number

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId Number

The CloudAMQP instance ID.

Outputs

All input properties are implicitly available as output properties. Additionally, the ExtraDiskSize resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ExtraDiskSize Resource

Get an existing ExtraDiskSize resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ExtraDiskSizeState, opts?: CustomResourceOptions): ExtraDiskSize
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        extra_disk_size: Optional[int] = None,
        instance_id: Optional[int] = None) -> ExtraDiskSize
func GetExtraDiskSize(ctx *Context, name string, id IDInput, state *ExtraDiskSizeState, opts ...ResourceOption) (*ExtraDiskSize, error)
public static ExtraDiskSize Get(string name, Input<string> id, ExtraDiskSizeState? state, CustomResourceOptions? opts = null)
public static ExtraDiskSize get(String name, Output<String> id, ExtraDiskSizeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ExtraDiskSizeGb int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

InstanceId int

The CloudAMQP instance ID.

ExtraDiskSize int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

InstanceId int

The CloudAMQP instance ID.

extraDiskSize Integer

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId Integer

The CloudAMQP instance ID.

extraDiskSize number

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId number

The CloudAMQP instance ID.

extra_disk_size int

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instance_id int

The CloudAMQP instance ID.

extraDiskSize Number

Extra disk size in GB. Supported values: 25, 50, 100, 250, 500, 1000, 2000

instanceId Number

The CloudAMQP instance ID.

Import

Not possible to import this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-cloudamqp
License
Apache-2.0
Notes

This Pulumi package is based on the cloudamqp Terraform Provider.