Up-to-date reference for API arguments and details can be found at the documentation portal.
opentelekomcloud_css_configuration_v1¶
Manage the configuration settings of a CSS cluster in OpenTelekomCloud.
Example Usage¶
resource "opentelekomcloud_css_configuration_v1" "example" {
cluster_id = "your-cluster-id"
http_cors_allow_credentials = "true"
http_cors_allow_origin = "122.122.122.122:9200"
indices_queries_cache_size = "50"
auto_create_index = "true"
}
Argument Reference¶
The following arguments are supported:
cluster_id
- (Required, String, ForceNew) The CSS cluster ID.Changing this parameter will create a new resource.
http_cors_allow_credetials
- (Optional, String) Whether to return the Access-Control-Allow-Credentials of the header during cross-domain access. The value can betrue
orfalse
. Default value:false
.http_cors_allow_origin
- (Optional, String) Origin IP address allowed for cross-domain access, for example,122.122.122.122:9200
.http_cors_max_age
- (Optional, String) Cache duration of the browser. The cache is automatically cleared after the time range you specify. Unit: s, Default value:1,728,000
.http_cors_allow_headers
- (Optional, String) Headers allowed for cross-domain access. IncludingX-Requested-With
,Content-Type
, andContent-Length
. Use commas (,) and spaces to separate headers.http_cors_enabled
- (Optional, String) Whether to allow cross-domain access. The value can betrue
orfalse
. Default value:false
.http_cors_allow_methods
- (Optional, String) Methods allowed for cross-domain access. IncludingOPTIONS
,HEAD
,GET
,POST
,PUT
, andDELETE
. Use commas (,) and spaces to separate methods.reindex_remote_whitelist
- (Optional, String) Configured for migrating data from the current cluster to the target cluster through the reindex API. The example value is122.122.122.122:9200
.indices_queries_cache_size
- (Optional, String) Cache size in the query phase. Value range:1%
to100%
. Unit: %, Default value:10%
.thread_pool_force_merge_size
- (Optional, String) Queue size in the force merge thread pool. Default value:1
.auto_create_index
- (Optional, String) Whether to auto-create an index. The value can betrue
orfalse
.
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id
- The resource ID which equals thecluster_id
.region
- The region where the CSS cluster is deployed.
Timeouts¶
This resource provides the following timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.
Import¶
The CSS configuration can be imported using the id
which equals the cluster_id
, e.g.
$ terraform import opentelekomcloud_css_configuration_v1.test <id>