diff --git a/examples/aws-workspace-basic/README.md b/examples/aws-workspace-basic/README.md
index bbe2394..1831421 100644
--- a/examples/aws-workspace-basic/README.md
+++ b/examples/aws-workspace-basic/README.md
@@ -13,10 +13,7 @@ This template provides an example of a simple deployment of AWS Databricks E2 wo
1. Reference this module using one of the different [module source types](https://developer.hashicorp.com/terraform/language/modules/sources)
2. Add a `variables.tf` with the same content in [variables.tf](variables.tf)
3. Add a `terraform.tfvars` file and provide values to each defined variable
-4. 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.
+4. Configure authentication to the Databricks Account (i.e., via Databricks CLI profiles or service principal).
5. Add a `output.tf` file.
6. (Optional) Configure your [remote backend](https://developer.hashicorp.com/terraform/language/settings/backends/s3)
7. Run `terraform init` to initialize terraform and get provider ready.
@@ -51,7 +48,8 @@ No resources.
| [databricks\_account\_id](#input\_databricks\_account\_id) | Databricks Account ID | `string` | n/a | yes |
| [region](#input\_region) | AWS region to deploy to | `string` | `"eu-west-1"` | no |
| [tags](#input\_tags) | Optional tags to add to created resources | `map(string)` | `{}` | no |
+| [prefix](#input\_prefix) | Optional prefix to add to resource names | `string` | `""` | no |
## Outputs
-No outputs.
\ No newline at end of file
+No outputs.
diff --git a/examples/aws-workspace-basic/main.tf b/examples/aws-workspace-basic/main.tf
index 5d4d0e3..ccd6d1a 100644
--- a/examples/aws-workspace-basic/main.tf
+++ b/examples/aws-workspace-basic/main.tf
@@ -1,4 +1,8 @@
module "aws-workspace-basic" {
source = "github.com/databricks/terraform-databricks-examples/modules/aws-workspace-basic"
databricks_account_id = var.databricks_account_id
-}
\ No newline at end of file
+ region = var.region
+ tags = var.tags
+ prefix = var.prefix
+ cidr_block = var.cidr_block
+}
diff --git a/examples/aws-workspace-basic/variables.tf b/examples/aws-workspace-basic/variables.tf
index 10d740d..1b7c112 100644
--- a/examples/aws-workspace-basic/variables.tf
+++ b/examples/aws-workspace-basic/variables.tf
@@ -20,3 +20,9 @@ variable "region" {
type = string
description = "AWS region to deploy to"
}
+
+variable "prefix" {
+ default = ""
+ type = string
+ description = "Prefix for use in the generated names"
+}
diff --git a/examples/aws-workspace-basic/versions.tf b/examples/aws-workspace-basic/versions.tf
index 8d01e93..316a4e9 100644
--- a/examples/aws-workspace-basic/versions.tf
+++ b/examples/aws-workspace-basic/versions.tf
@@ -19,4 +19,5 @@ provider "aws" {
provider "databricks" {
host = "https://accounts.cloud.databricks.com"
-}
\ No newline at end of file
+ account_id = var.databricks_account_id
+}
diff --git a/modules/aws-workspace-basic/variables.tf b/modules/aws-workspace-basic/variables.tf
index 437b391..8ea3720 100644
--- a/modules/aws-workspace-basic/variables.tf
+++ b/modules/aws-workspace-basic/variables.tf
@@ -22,7 +22,7 @@ variable "region" {
}
variable "prefix" {
- default = "demo"
+ default = ""
type = string
description = "Prefix for use in the generated names"
}
diff --git a/modules/aws-workspace-basic/workspace.tf b/modules/aws-workspace-basic/workspace.tf
index e4d947c..25e97e7 100644
--- a/modules/aws-workspace-basic/workspace.tf
+++ b/modules/aws-workspace-basic/workspace.tf
@@ -13,7 +13,6 @@ resource "databricks_mws_storage_configurations" "this" {
}
resource "databricks_mws_credentials" "this" {
- account_id = var.databricks_account_id
role_arn = aws_iam_role.cross_account_role.arn
credentials_name = "${local.prefix}-creds"
depends_on = [time_sleep.wait]
@@ -39,4 +38,4 @@ resource "databricks_mws_workspaces" "this" {
token {
comment = "Terraform"
}
-}
\ No newline at end of file
+}