databricks logo
Databricks v1.14.0, May 23 23

databricks.getZones

Explore with Pulumi AI

Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.

This data source allows you to fetch all available AWS availability zones on your workspace on AWS.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;

return await Deployment.RunAsync(() => 
{
    var zones = Databricks.GetZones.Invoke();

});
package main

import (
	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databricks.GetZones(ctx, nil, nil)
		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.databricks.DatabricksFunctions;
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 zones = DatabricksFunctions.getZones();

    }
}
import pulumi
import pulumi_databricks as databricks

zones = databricks.get_zones()
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";

const zones = databricks.getZones({});
variables:
  zones:
    fn::invoke:
      Function: databricks:getZones
      Arguments: {}

Using getZones

function getZones(opts?: InvokeOptions): Promise<GetZonesResult>
def get_zones(opts: Optional[InvokeOptions] = None) -> GetZonesResult
func GetZones(ctx *Context, opts ...InvokeOption) (*GetZonesResult, error)

> Note: This function is named GetZones in the Go SDK.

public static class GetZones 
{
    public static Task<GetZonesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: databricks:index/getZones:getZones
  arguments:
    # arguments dictionary

getZones Result

The following output properties are available:

DefaultZone string

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

Id string

The provider-assigned unique ID for this managed resource.

Zones List<string>

This is a list of all the zones available for your subnets in your Databricks workspace.

DefaultZone string

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

Id string

The provider-assigned unique ID for this managed resource.

Zones []string

This is a list of all the zones available for your subnets in your Databricks workspace.

defaultZone String

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

id String

The provider-assigned unique ID for this managed resource.

zones List<String>

This is a list of all the zones available for your subnets in your Databricks workspace.

defaultZone string

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

id string

The provider-assigned unique ID for this managed resource.

zones string[]

This is a list of all the zones available for your subnets in your Databricks workspace.

default_zone str

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

id str

The provider-assigned unique ID for this managed resource.

zones Sequence[str]

This is a list of all the zones available for your subnets in your Databricks workspace.

defaultZone String

This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.

id String

The provider-assigned unique ID for this managed resource.

zones List<String>

This is a list of all the zones available for your subnets in your Databricks workspace.

Package Details

Repository
databricks pulumi/pulumi-databricks
License
Apache-2.0
Notes

This Pulumi package is based on the databricks Terraform Provider.