This Terraform module creates the necessary AWS resources for setting up a Databricks workspace.
Include:
- An IAM cross-account role for Databricks to assume
- An S3 bucket to serve as the root storage for Databricks
- Necessary IAM policies and S3 bucket policies
- VPC resources (implied by the outputs, but not directly created in the provided resource list)
Note
You can customize this module by adding, deleting or updating the AWS resources to adapt the module to your requirements.
A deployment example using this module can be found in examples/aws-workspace-basic
- Reference this module using one of the different module source types
- Add
terraform.tfvars
with the information about the required input variables.
Name |
Source |
Version |
vpc |
terraform-aws-modules/vpc/aws |
5.7.0 |
vpc_endpoints |
terraform-aws-modules/vpc/aws//modules/vpc-endpoints |
5.7.0 |
Name |
Description |
Type |
Default |
Required |
cidr_block |
(Required) CIDR block for the VPC that will be used to create the Databricks workspace |
string |
n/a |
yes |
databricks_account_id |
(Required) Databricks Account ID |
string |
n/a |
yes |
prefix |
(Required) Prefix for the resources deployed by this module |
string |
n/a |
yes |
region |
(Required) AWS region where the resources will be deployed |
string |
n/a |
yes |
roles_to_assume |
(Optional) List of AWS roles that the cross account role can pass to the clusters (important when creating instance profiles) |
list(string) |
n/a |
yes |
tags |
(Required) Map of tags to be applied to the kinesis stream |
map(string) |
n/a |
yes |