This example is using the aws-workspace-basic module.
This template provides an example of a simple deployment of AWS Databricks E2 workspace.
- Reference this module using one of the different module source types
- Add a
variables.tf
with the same content in variables.tf - Add a
terraform.tfvars
file and provide values to each defined variable - Configure the following environment variables:
- TF_VAR_databricks_account_client_id, set to the value of application ID of your Databricks account-level service principal with admin permission.
- TF_VAR_databricks_account_client_secret, set to the value of the client secret for your Databricks account-level service principal.
- TF_VAR_databricks_account_id, set to the value of the ID of your Databricks account. You can find this value in the corner of your Databricks account console.
- Add a
output.tf
file. - (Optional) Configure your remote backend
- Run
terraform init
to initialize terraform and get provider ready. - Run
terraform apply
to create the resources.
Name | Version |
---|---|
aws | ~> 5.0 |
databricks | >=1.13.0 |
No providers.
Name | Source | Version |
---|---|---|
aws-workspace-basic | github.com/databricks/terraform-databricks-examples/modules/aws-workspace-basic | n/a |
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
cidr_block | IP range for AWS VPC | string |
"10.4.0.0/16" |
no |
databricks_account_id | Databricks Account ID | string |
n/a | yes |
region | AWS region to deploy to | string |
"eu-west-1" |
no |
tags | Optional tags to add to created resources | map(string) |
{} |
no |
No outputs.