Elasticsearch
Manages an Elasticsearch in Elastic Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const test = new azure.core.ResourceGroup("test", {
name: "example-resources",
location: "West Europe",
});
const testElasticsearch = new azure.elasticcloud.Elasticsearch("test", {
name: "example-elasticsearch",
resourceGroupName: test.name,
location: test.location,
skuName: "ess-consumption-2024_Monthly",
elasticCloudEmailAddress: "user@example.com",
});
import pulumi
import pulumi_azure as azure
test = azure.core.ResourceGroup("test",
name="example-resources",
location="West Europe")
test_elasticsearch = azure.elasticcloud.Elasticsearch("test",
name="example-elasticsearch",
resource_group_name=test.name,
location=test.location,
sku_name="ess-consumption-2024_Monthly",
elastic_cloud_email_address="user@example.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var test = new Azure.Core.ResourceGroup("test", new()
{
Name = "example-resources",
Location = "West Europe",
});
var testElasticsearch = new Azure.ElasticCloud.Elasticsearch("test", new()
{
Name = "example-elasticsearch",
ResourceGroupName = test.Name,
Location = test.Location,
SkuName = "ess-consumption-2024_Monthly",
ElasticCloudEmailAddress = "user@example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/elasticcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := core.NewResourceGroup(ctx, "test", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = elasticcloud.NewElasticsearch(ctx, "test", &elasticcloud.ElasticsearchArgs{
Name: pulumi.String("example-elasticsearch"),
ResourceGroupName: test.Name,
Location: test.Location,
SkuName: pulumi.String("ess-consumption-2024_Monthly"),
ElasticCloudEmailAddress: pulumi.String("user@example.com"),
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.elasticcloud.Elasticsearch;
import com.pulumi.azure.elasticcloud.ElasticsearchArgs;
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 test = new ResourceGroup("test", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var testElasticsearch = new Elasticsearch("testElasticsearch", ElasticsearchArgs.builder()
.name("example-elasticsearch")
.resourceGroupName(test.name())
.location(test.location())
.skuName("ess-consumption-2024_Monthly")
.elasticCloudEmailAddress("user@example.com")
.build());
}
}
resources:
test:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
testElasticsearch:
type: azure:elasticcloud:Elasticsearch
name: test
properties:
name: example-elasticsearch
resourceGroupName: ${test.name}
location: ${test.location}
skuName: ess-consumption-2024_Monthly
elasticCloudEmailAddress: user@example.com
API Providers
This resource uses the following Azure API Providers:
Microsoft.Elastic
: 2023-06-01
Import
Elasticsearch's can be imported using the resource id
, e.g.
$ pulumi import azure:elasticcloud/elasticsearch:Elasticsearch example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Elastic/monitors/monitor1
Properties
The ID of the Deployment within Elastic Cloud.
Specifies the Email Address which should be associated with this Elasticsearch account. Changing this forces a new Elasticsearch to be created.
The Default URL used for Single Sign On (SSO) to Elastic Cloud.
The ID of the User Account within Elastic Cloud.
The URL to the Elasticsearch Service associated with this Elasticsearch.
The URL to the Kibana Dashboard associated with this Elasticsearch.
The URI used for SSO to the Kibana Dashboard associated with this Elasticsearch.
A logs
block as defined below.
Specifies if the Elasticsearch should have monitoring configured? Defaults to true
. Changing this forces a new Elasticsearch to be created.
The name of the Resource Group where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created.