published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
OpenSearch instance resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_opensearch_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
version = "2"
plan_name = "stackit-opensearch-1.2.10-replica"
parameters = {
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
}
}
# Only use the import statement, if you want to import an existing opensearch instance
import {
to = stackit_opensearch_instance.import-example
id = "${var.project_id},${var.instance_id}"
}
Create OpensearchInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpensearchInstance(name: string, args: OpensearchInstanceArgs, opts?: CustomResourceOptions);@overload
def OpensearchInstance(resource_name: str,
args: OpensearchInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OpensearchInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
plan_name: Optional[str] = None,
project_id: Optional[str] = None,
version: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[OpensearchInstanceParametersArgs] = None)func NewOpensearchInstance(ctx *Context, name string, args OpensearchInstanceArgs, opts ...ResourceOption) (*OpensearchInstance, error)public OpensearchInstance(string name, OpensearchInstanceArgs args, CustomResourceOptions? opts = null)
public OpensearchInstance(String name, OpensearchInstanceArgs args)
public OpensearchInstance(String name, OpensearchInstanceArgs args, CustomResourceOptions options)
type: stackit:OpensearchInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OpensearchInstanceArgs
- 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 OpensearchInstanceArgs
- 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 OpensearchInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpensearchInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpensearchInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var opensearchInstanceResource = new Stackit.OpensearchInstance("opensearchInstanceResource", new()
{
PlanName = "string",
ProjectId = "string",
Version = "string",
Name = "string",
Parameters = new Stackit.Inputs.OpensearchInstanceParametersArgs
{
EnableMonitoring = false,
Graphite = "string",
JavaGarbageCollector = "string",
JavaHeapspace = 0,
JavaMaxmetaspace = 0,
MaxDiskThreshold = 0,
MetricsFrequency = 0,
MetricsPrefix = "string",
MonitoringInstanceId = "string",
Plugins = new[]
{
"string",
},
SgwAcl = "string",
Syslogs = new[]
{
"string",
},
TlsCiphers = new[]
{
"string",
},
TlsProtocols = new[]
{
"string",
},
},
});
example, err := stackit.NewOpensearchInstance(ctx, "opensearchInstanceResource", &stackit.OpensearchInstanceArgs{
PlanName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Version: pulumi.String("string"),
Name: pulumi.String("string"),
Parameters: &stackit.OpensearchInstanceParametersArgs{
EnableMonitoring: pulumi.Bool(false),
Graphite: pulumi.String("string"),
JavaGarbageCollector: pulumi.String("string"),
JavaHeapspace: pulumi.Int(0),
JavaMaxmetaspace: pulumi.Int(0),
MaxDiskThreshold: pulumi.Int(0),
MetricsFrequency: pulumi.Int(0),
MetricsPrefix: pulumi.String("string"),
MonitoringInstanceId: pulumi.String("string"),
Plugins: pulumi.StringArray{
pulumi.String("string"),
},
SgwAcl: pulumi.String("string"),
Syslogs: pulumi.StringArray{
pulumi.String("string"),
},
TlsCiphers: pulumi.StringArray{
pulumi.String("string"),
},
TlsProtocols: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var opensearchInstanceResource = new OpensearchInstance("opensearchInstanceResource", OpensearchInstanceArgs.builder()
.planName("string")
.projectId("string")
.version("string")
.name("string")
.parameters(OpensearchInstanceParametersArgs.builder()
.enableMonitoring(false)
.graphite("string")
.javaGarbageCollector("string")
.javaHeapspace(0)
.javaMaxmetaspace(0)
.maxDiskThreshold(0)
.metricsFrequency(0)
.metricsPrefix("string")
.monitoringInstanceId("string")
.plugins("string")
.sgwAcl("string")
.syslogs("string")
.tlsCiphers("string")
.tlsProtocols("string")
.build())
.build());
opensearch_instance_resource = stackit.OpensearchInstance("opensearchInstanceResource",
plan_name="string",
project_id="string",
version="string",
name="string",
parameters={
"enable_monitoring": False,
"graphite": "string",
"java_garbage_collector": "string",
"java_heapspace": 0,
"java_maxmetaspace": 0,
"max_disk_threshold": 0,
"metrics_frequency": 0,
"metrics_prefix": "string",
"monitoring_instance_id": "string",
"plugins": ["string"],
"sgw_acl": "string",
"syslogs": ["string"],
"tls_ciphers": ["string"],
"tls_protocols": ["string"],
})
const opensearchInstanceResource = new stackit.OpensearchInstance("opensearchInstanceResource", {
planName: "string",
projectId: "string",
version: "string",
name: "string",
parameters: {
enableMonitoring: false,
graphite: "string",
javaGarbageCollector: "string",
javaHeapspace: 0,
javaMaxmetaspace: 0,
maxDiskThreshold: 0,
metricsFrequency: 0,
metricsPrefix: "string",
monitoringInstanceId: "string",
plugins: ["string"],
sgwAcl: "string",
syslogs: ["string"],
tlsCiphers: ["string"],
tlsProtocols: ["string"],
},
});
type: stackit:OpensearchInstance
properties:
name: string
parameters:
enableMonitoring: false
graphite: string
javaGarbageCollector: string
javaHeapspace: 0
javaMaxmetaspace: 0
maxDiskThreshold: 0
metricsFrequency: 0
metricsPrefix: string
monitoringInstanceId: string
plugins:
- string
sgwAcl: string
syslogs:
- string
tlsCiphers:
- string
tlsProtocols:
- string
planName: string
projectId: string
version: string
OpensearchInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OpensearchInstance resource accepts the following input properties:
- Plan
Name string - The selected plan name.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Version string
- The service version.
- Name string
- Instance name.
- Parameters
Opensearch
Instance Parameters
- Plan
Name string - The selected plan name.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Version string
- The service version.
- Name string
- Instance name.
- Parameters
Opensearch
Instance Parameters Args
- plan
Name String - The selected plan name.
- project
Id String - STACKIT project ID to which the instance is associated.
- version String
- The service version.
- name String
- Instance name.
- parameters
Opensearch
Instance Parameters
- plan
Name string - The selected plan name.
- project
Id string - STACKIT project ID to which the instance is associated.
- version string
- The service version.
- name string
- Instance name.
- parameters
Opensearch
Instance Parameters
- plan_
name str - The selected plan name.
- project_
id str - STACKIT project ID to which the instance is associated.
- version str
- The service version.
- name str
- Instance name.
- parameters
Opensearch
Instance Parameters Args
- plan
Name String - The selected plan name.
- project
Id String - STACKIT project ID to which the instance is associated.
- version String
- The service version.
- name String
- Instance name.
- parameters Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the OpensearchInstance resource produces the following output properties:
- Cf
Guid string - Cf
Organization stringGuid - Cf
Space stringGuid - Dashboard
Url string - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Url string - Instance
Id string - ID of the OpenSearch instance.
- Plan
Id string - The selected plan ID.
- Cf
Guid string - Cf
Organization stringGuid - Cf
Space stringGuid - Dashboard
Url string - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Url string - Instance
Id string - ID of the OpenSearch instance.
- Plan
Id string - The selected plan ID.
- cf
Guid String - cf
Organization StringGuid - cf
Space StringGuid - dashboard
Url String - id String
- The provider-assigned unique ID for this managed resource.
- image
Url String - instance
Id String - ID of the OpenSearch instance.
- plan
Id String - The selected plan ID.
- cf
Guid string - cf
Organization stringGuid - cf
Space stringGuid - dashboard
Url string - id string
- The provider-assigned unique ID for this managed resource.
- image
Url string - instance
Id string - ID of the OpenSearch instance.
- plan
Id string - The selected plan ID.
- cf_
guid str - cf_
organization_ strguid - cf_
space_ strguid - dashboard_
url str - id str
- The provider-assigned unique ID for this managed resource.
- image_
url str - instance_
id str - ID of the OpenSearch instance.
- plan_
id str - The selected plan ID.
- cf
Guid String - cf
Organization StringGuid - cf
Space StringGuid - dashboard
Url String - id String
- The provider-assigned unique ID for this managed resource.
- image
Url String - instance
Id String - ID of the OpenSearch instance.
- plan
Id String - The selected plan ID.
Look up Existing OpensearchInstance Resource
Get an existing OpensearchInstance 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?: OpensearchInstanceState, opts?: CustomResourceOptions): OpensearchInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cf_guid: Optional[str] = None,
cf_organization_guid: Optional[str] = None,
cf_space_guid: Optional[str] = None,
dashboard_url: Optional[str] = None,
image_url: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[OpensearchInstanceParametersArgs] = None,
plan_id: Optional[str] = None,
plan_name: Optional[str] = None,
project_id: Optional[str] = None,
version: Optional[str] = None) -> OpensearchInstancefunc GetOpensearchInstance(ctx *Context, name string, id IDInput, state *OpensearchInstanceState, opts ...ResourceOption) (*OpensearchInstance, error)public static OpensearchInstance Get(string name, Input<string> id, OpensearchInstanceState? state, CustomResourceOptions? opts = null)public static OpensearchInstance get(String name, Output<String> id, OpensearchInstanceState state, CustomResourceOptions options)resources: _: type: stackit:OpensearchInstance get: id: ${id}- 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.
- Cf
Guid string - Cf
Organization stringGuid - Cf
Space stringGuid - Dashboard
Url string - Image
Url string - Instance
Id string - ID of the OpenSearch instance.
- Name string
- Instance name.
- Parameters
Opensearch
Instance Parameters - Plan
Id string - The selected plan ID.
- Plan
Name string - The selected plan name.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Version string
- The service version.
- Cf
Guid string - Cf
Organization stringGuid - Cf
Space stringGuid - Dashboard
Url string - Image
Url string - Instance
Id string - ID of the OpenSearch instance.
- Name string
- Instance name.
- Parameters
Opensearch
Instance Parameters Args - Plan
Id string - The selected plan ID.
- Plan
Name string - The selected plan name.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Version string
- The service version.
- cf
Guid String - cf
Organization StringGuid - cf
Space StringGuid - dashboard
Url String - image
Url String - instance
Id String - ID of the OpenSearch instance.
- name String
- Instance name.
- parameters
Opensearch
Instance Parameters - plan
Id String - The selected plan ID.
- plan
Name String - The selected plan name.
- project
Id String - STACKIT project ID to which the instance is associated.
- version String
- The service version.
- cf
Guid string - cf
Organization stringGuid - cf
Space stringGuid - dashboard
Url string - image
Url string - instance
Id string - ID of the OpenSearch instance.
- name string
- Instance name.
- parameters
Opensearch
Instance Parameters - plan
Id string - The selected plan ID.
- plan
Name string - The selected plan name.
- project
Id string - STACKIT project ID to which the instance is associated.
- version string
- The service version.
- cf_
guid str - cf_
organization_ strguid - cf_
space_ strguid - dashboard_
url str - image_
url str - instance_
id str - ID of the OpenSearch instance.
- name str
- Instance name.
- parameters
Opensearch
Instance Parameters Args - plan_
id str - The selected plan ID.
- plan_
name str - The selected plan name.
- project_
id str - STACKIT project ID to which the instance is associated.
- version str
- The service version.
- cf
Guid String - cf
Organization StringGuid - cf
Space StringGuid - dashboard
Url String - image
Url String - instance
Id String - ID of the OpenSearch instance.
- name String
- Instance name.
- parameters Property Map
- plan
Id String - The selected plan ID.
- plan
Name String - The selected plan name.
- project
Id String - STACKIT project ID to which the instance is associated.
- version String
- The service version.
Supporting Types
OpensearchInstanceParameters, OpensearchInstanceParametersArgs
- Enable
Monitoring bool - Enable monitoring.
- Graphite string
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- Java
Garbage stringCollector - The garbage collector to use for OpenSearch.
- Java
Heapspace int - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- Java
Maxmetaspace int - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- Max
Disk intThreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- Metrics
Frequency int - The frequency in seconds at which metrics are emitted (in seconds).
- Metrics
Prefix string - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- Monitoring
Instance stringId - The ID of the STACKIT monitoring instance.
- Plugins List<string>
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - Sgw
Acl string - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- Syslogs List<string>
- List of syslog servers to send logs to.
- Tls
Ciphers List<string> - List of TLS ciphers to use.
- Tls
Protocols List<string> - The TLS protocol to use.
- Enable
Monitoring bool - Enable monitoring.
- Graphite string
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- Java
Garbage stringCollector - The garbage collector to use for OpenSearch.
- Java
Heapspace int - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- Java
Maxmetaspace int - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- Max
Disk intThreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- Metrics
Frequency int - The frequency in seconds at which metrics are emitted (in seconds).
- Metrics
Prefix string - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- Monitoring
Instance stringId - The ID of the STACKIT monitoring instance.
- Plugins []string
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - Sgw
Acl string - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- Syslogs []string
- List of syslog servers to send logs to.
- Tls
Ciphers []string - List of TLS ciphers to use.
- Tls
Protocols []string - The TLS protocol to use.
- enable
Monitoring Boolean - Enable monitoring.
- graphite String
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- java
Garbage StringCollector - The garbage collector to use for OpenSearch.
- java
Heapspace Integer - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- java
Maxmetaspace Integer - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- max
Disk IntegerThreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- metrics
Frequency Integer - The frequency in seconds at which metrics are emitted (in seconds).
- metrics
Prefix String - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- monitoring
Instance StringId - The ID of the STACKIT monitoring instance.
- plugins List<String>
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - sgw
Acl String - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- syslogs List<String>
- List of syslog servers to send logs to.
- tls
Ciphers List<String> - List of TLS ciphers to use.
- tls
Protocols List<String> - The TLS protocol to use.
- enable
Monitoring boolean - Enable monitoring.
- graphite string
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- java
Garbage stringCollector - The garbage collector to use for OpenSearch.
- java
Heapspace number - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- java
Maxmetaspace number - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- max
Disk numberThreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- metrics
Frequency number - The frequency in seconds at which metrics are emitted (in seconds).
- metrics
Prefix string - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- monitoring
Instance stringId - The ID of the STACKIT monitoring instance.
- plugins string[]
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - sgw
Acl string - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- syslogs string[]
- List of syslog servers to send logs to.
- tls
Ciphers string[] - List of TLS ciphers to use.
- tls
Protocols string[] - The TLS protocol to use.
- enable_
monitoring bool - Enable monitoring.
- graphite str
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- java_
garbage_ strcollector - The garbage collector to use for OpenSearch.
- java_
heapspace int - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- java_
maxmetaspace int - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- max_
disk_ intthreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- metrics_
frequency int - The frequency in seconds at which metrics are emitted (in seconds).
- metrics_
prefix str - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- monitoring_
instance_ strid - The ID of the STACKIT monitoring instance.
- plugins Sequence[str]
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - sgw_
acl str - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- syslogs Sequence[str]
- List of syslog servers to send logs to.
- tls_
ciphers Sequence[str] - List of TLS ciphers to use.
- tls_
protocols Sequence[str] - The TLS protocol to use.
- enable
Monitoring Boolean - Enable monitoring.
- graphite String
- If set, monitoring with Graphite will be enabled. Expects the host and port where the Graphite metrics should be sent to (host:port).
- java
Garbage StringCollector - The garbage collector to use for OpenSearch.
- java
Heapspace Number - The amount of memory (in MB) allocated as heap by the JVM for OpenSearch.
- java
Maxmetaspace Number - The amount of memory (in MB) used by the JVM to store metadata for OpenSearch.
- max
Disk NumberThreshold - The maximum disk threshold in MB. If the disk usage exceeds this threshold, the instance will be stopped.
- metrics
Frequency Number - The frequency in seconds at which metrics are emitted (in seconds).
- metrics
Prefix String - The prefix for the metrics. Could be useful when using Graphite monitoring to prefix the metrics with a certain value, like an API key.
- monitoring
Instance StringId - The ID of the STACKIT monitoring instance.
- plugins List<String>
- List of plugins to install. Must be a supported plugin name. The plugins
repository-s3andrepository-azureare enabled by default and cannot be disabled. - sgw
Acl String - Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
- syslogs List<String>
- List of syslog servers to send logs to.
- tls
Ciphers List<String> - List of TLS ciphers to use.
- tls
Protocols List<String> - The TLS protocol to use.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
