Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien
qovery.getCluster
Explore with Pulumi AI
# qovery.Cluster (Data Source)
Provides a Qovery cluster resource. This can be used to create and manage Qovery cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@pulumi/qovery";
const myCluster = qovery.getCluster({
    id: "<cluster_id>",
    organizationId: "<organization_id>",
});
import pulumi
import pulumi_qovery as qovery
my_cluster = qovery.get_cluster(id="<cluster_id>",
    organization_id="<organization_id>")
package main
import (
	"github.com/dirien/pulumi-qovery/sdk/go/qovery"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := qovery.LookupCluster(ctx, &qovery.LookupClusterArgs{
			Id:             "<cluster_id>",
			OrganizationId: "<organization_id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = Pulumi.Qovery;
return await Deployment.RunAsync(() => 
{
    var myCluster = Qovery.GetCluster.Invoke(new()
    {
        Id = "<cluster_id>",
        OrganizationId = "<organization_id>",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.QoveryFunctions;
import com.pulumi.qovery.inputs.GetClusterArgs;
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) {
        final var myCluster = QoveryFunctions.getCluster(GetClusterArgs.builder()
            .id("<cluster_id>")
            .organizationId("<organization_id>")
            .build());
    }
}
variables:
  myCluster:
    fn::invoke:
      Function: qovery:getCluster
      Arguments:
        id: <cluster_id>
        organizationId: <organization_id>
Using getCluster
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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>def get_cluster(advanced_settings_json: Optional[str] = None,
                description: Optional[str] = None,
                disk_size: Optional[int] = None,
                features: Optional[GetClusterFeatures] = None,
                id: Optional[str] = None,
                instance_type: Optional[str] = None,
                kubernetes_mode: Optional[str] = None,
                max_running_nodes: Optional[int] = None,
                min_running_nodes: Optional[int] = None,
                organization_id: Optional[str] = None,
                production: Optional[bool] = None,
                routing_tables: Optional[Sequence[GetClusterRoutingTable]] = None,
                state: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(advanced_settings_json: Optional[pulumi.Input[str]] = None,
                description: Optional[pulumi.Input[str]] = None,
                disk_size: Optional[pulumi.Input[int]] = None,
                features: Optional[pulumi.Input[GetClusterFeaturesArgs]] = None,
                id: Optional[pulumi.Input[str]] = None,
                instance_type: Optional[pulumi.Input[str]] = None,
                kubernetes_mode: Optional[pulumi.Input[str]] = None,
                max_running_nodes: Optional[pulumi.Input[int]] = None,
                min_running_nodes: Optional[pulumi.Input[int]] = None,
                organization_id: Optional[pulumi.Input[str]] = None,
                production: Optional[pulumi.Input[bool]] = None,
                routing_tables: Optional[pulumi.Input[Sequence[pulumi.Input[GetClusterRoutingTableArgs]]]] = None,
                state: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput> Note: This function is named LookupCluster in the Go SDK.
public static class GetCluster 
{
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
  function: qovery:index/getCluster:getCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- OrganizationId string
- AdvancedSettings stringJson 
- Description string
- DiskSize int
- Features
ediri.Qovery. Inputs. Get Cluster Features 
- InstanceType string
- KubernetesMode string
- MaxRunning intNodes 
- MinRunning intNodes 
- Production bool
- RoutingTables List<ediri.Qovery. Inputs. Get Cluster Routing Table> 
- State string
- Id string
- OrganizationId string
- AdvancedSettings stringJson 
- Description string
- DiskSize int
- Features
GetCluster Features 
- InstanceType string
- KubernetesMode string
- MaxRunning intNodes 
- MinRunning intNodes 
- Production bool
- RoutingTables []GetCluster Routing Table 
- State string
- id String
- organizationId String
- advancedSettings StringJson 
- description String
- diskSize Integer
- features
GetCluster Features 
- instanceType String
- kubernetesMode String
- maxRunning IntegerNodes 
- minRunning IntegerNodes 
- production Boolean
- routingTables List<GetCluster Routing Table> 
- state String
- id string
- organizationId string
- advancedSettings stringJson 
- description string
- diskSize number
- features
GetCluster Features 
- instanceType string
- kubernetesMode string
- maxRunning numberNodes 
- minRunning numberNodes 
- production boolean
- routingTables GetCluster Routing Table[] 
- state string
- id String
- organizationId String
- advancedSettings StringJson 
- description String
- diskSize Number
- features Property Map
- instanceType String
- kubernetesMode String
- maxRunning NumberNodes 
- minRunning NumberNodes 
- production Boolean
- routingTables List<Property Map>
- state String
getCluster Result
The following output properties are available:
- AdvancedSettings stringJson 
- CloudProvider string
- CredentialsId string
- Description string
- DiskSize int
- Features
ediri.Qovery. Outputs. Get Cluster Features 
- Id string
- InstanceType string
- KubernetesMode string
- MaxRunning intNodes 
- MinRunning intNodes 
- Name string
- OrganizationId string
- Production bool
- Region string
- RoutingTables List<ediri.Qovery. Outputs. Get Cluster Routing Table> 
- State string
- AdvancedSettings stringJson 
- CloudProvider string
- CredentialsId string
- Description string
- DiskSize int
- Features
GetCluster Features 
- Id string
- InstanceType string
- KubernetesMode string
- MaxRunning intNodes 
- MinRunning intNodes 
- Name string
- OrganizationId string
- Production bool
- Region string
- RoutingTables []GetCluster Routing Table 
- State string
- advancedSettings StringJson 
- cloudProvider String
- credentialsId String
- description String
- diskSize Integer
- features
GetCluster Features 
- id String
- instanceType String
- kubernetesMode String
- maxRunning IntegerNodes 
- minRunning IntegerNodes 
- name String
- organizationId String
- production Boolean
- region String
- routingTables List<GetCluster Routing Table> 
- state String
- advancedSettings stringJson 
- cloudProvider string
- credentialsId string
- description string
- diskSize number
- features
GetCluster Features 
- id string
- instanceType string
- kubernetesMode string
- maxRunning numberNodes 
- minRunning numberNodes 
- name string
- organizationId string
- production boolean
- region string
- routingTables GetCluster Routing Table[] 
- state string
- advanced_settings_ strjson 
- cloud_provider str
- credentials_id str
- description str
- disk_size int
- features
GetCluster Features 
- id str
- instance_type str
- kubernetes_mode str
- max_running_ intnodes 
- min_running_ intnodes 
- name str
- organization_id str
- production bool
- region str
- routing_tables Sequence[GetCluster Routing Table] 
- state str
- advancedSettings StringJson 
- cloudProvider String
- credentialsId String
- description String
- diskSize Number
- features Property Map
- id String
- instanceType String
- kubernetesMode String
- maxRunning NumberNodes 
- minRunning NumberNodes 
- name String
- organizationId String
- production Boolean
- region String
- routingTables List<Property Map>
- state String
Supporting Types
GetClusterFeatures  
- StaticIp bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- VpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- ExistingVpc ediri.Qovery. Inputs. Get Cluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- Karpenter
ediri.Qovery. Inputs. Get Cluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- StaticIp bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- VpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- ExistingVpc GetCluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- Karpenter
GetCluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp Boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet String
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc GetCluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
GetCluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc GetCluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
GetCluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- static_ip bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpc_subnet str
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existing_vpc GetCluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
GetCluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp Boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet String
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc Property Map
- Network configuration if you want to install qovery on an existing VPC
- karpenter Property Map
- Karpenter parameters if you want to use Karpenter on an EKS cluster
GetClusterFeaturesExistingVpc    
- AwsVpc stringEks Id 
- Aws VPC id
- DocumentdbSubnets List<string>Zone AIds 
- Ids of the subnets for document db
- DocumentdbSubnets List<string>Zone BIds 
- Ids of the subnets for document db
- DocumentdbSubnets List<string>Zone CIds 
- Ids of the subnets for document db
- EksSubnets List<string>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- EksSubnets List<string>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- EksSubnets List<string>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- ElasticacheSubnets List<string>Zone AIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets List<string>Zone BIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets List<string>Zone CIds 
- Ids of the subnets for elasticache
- RdsSubnets List<string>Zone AIds 
- Ids of the subnets for RDS
- RdsSubnets List<string>Zone BIds 
- Ids of the subnets for RDS
- RdsSubnets List<string>Zone CIds 
- Ids of the subnets for RDS
- AwsVpc stringEks Id 
- Aws VPC id
- DocumentdbSubnets []stringZone AIds 
- Ids of the subnets for document db
- DocumentdbSubnets []stringZone BIds 
- Ids of the subnets for document db
- DocumentdbSubnets []stringZone CIds 
- Ids of the subnets for document db
- EksSubnets []stringZone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- EksSubnets []stringZone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- EksSubnets []stringZone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- ElasticacheSubnets []stringZone AIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets []stringZone BIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets []stringZone CIds 
- Ids of the subnets for elasticache
- RdsSubnets []stringZone AIds 
- Ids of the subnets for RDS
- RdsSubnets []stringZone BIds 
- Ids of the subnets for RDS
- RdsSubnets []stringZone CIds 
- Ids of the subnets for RDS
- awsVpc StringEks Id 
- Aws VPC id
- documentdbSubnets List<String>Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone CIds 
- Ids of the subnets for document db
- eksSubnets List<String>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- elasticacheSubnets List<String>Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets List<String>Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone CIds 
- Ids of the subnets for RDS
- awsVpc stringEks Id 
- Aws VPC id
- documentdbSubnets string[]Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets string[]Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets string[]Zone CIds 
- Ids of the subnets for document db
- eksSubnets string[]Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets string[]Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets string[]Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- elasticacheSubnets string[]Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets string[]Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets string[]Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets string[]Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets string[]Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets string[]Zone CIds 
- Ids of the subnets for RDS
- aws_vpc_ streks_ id 
- Aws VPC id
- documentdb_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for document db
- documentdb_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for document db
- documentdb_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for document db
- eks_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eks_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eks_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- elasticache_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for elasticache
- elasticache_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for elasticache
- elasticache_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for elasticache
- rds_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for RDS
- rds_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for RDS
- rds_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for RDS
- awsVpc StringEks Id 
- Aws VPC id
- documentdbSubnets List<String>Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone CIds 
- Ids of the subnets for document db
- eksSubnets List<String>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- elasticacheSubnets List<String>Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets List<String>Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone CIds 
- Ids of the subnets for RDS
GetClusterFeaturesKarpenter   
- DefaultService stringArchitecture 
- The default architecture of service
- DiskSize intIn Gib 
- SpotEnabled bool
- Enable spot instances
- DefaultService stringArchitecture 
- The default architecture of service
- DiskSize intIn Gib 
- SpotEnabled bool
- Enable spot instances
- defaultService StringArchitecture 
- The default architecture of service
- diskSize IntegerIn Gib 
- spotEnabled Boolean
- Enable spot instances
- defaultService stringArchitecture 
- The default architecture of service
- diskSize numberIn Gib 
- spotEnabled boolean
- Enable spot instances
- default_service_ strarchitecture 
- The default architecture of service
- disk_size_ intin_ gib 
- spot_enabled bool
- Enable spot instances
- defaultService StringArchitecture 
- The default architecture of service
- diskSize NumberIn Gib 
- spotEnabled Boolean
- Enable spot instances
GetClusterRoutingTable   
- Description string
- Description of the route.
- Destination string
- Destination of the route.
- Target string
- Target of the route.
- Description string
- Description of the route.
- Destination string
- Destination of the route.
- Target string
- Target of the route.
- description String
- Description of the route.
- destination String
- Destination of the route.
- target String
- Target of the route.
- description string
- Description of the route.
- destination string
- Destination of the route.
- target string
- Target of the route.
- description str
- Description of the route.
- destination str
- Destination of the route.
- target str
- Target of the route.
- description String
- Description of the route.
- destination String
- Destination of the route.
- target String
- Target of the route.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the qoveryTerraform Provider.