- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 08:55 AM
Hey,
I want to inject Databricks secrets into my Databricks Asset Bundles in order to avoid exposing secrets.
I tried it as shown in the code block below but it gives the error below the code block.
When I hardcode my instance_profile_arn it does work.
How can I inject My Databricks secrets in my Databricks Asset Bundle?
Many thanks!
instance_profile_arn: ${secrets.aws_secrets.cluster_profile_arn}Error: exit status 1
Error: Reference to undeclared resource
on bundle.tf.json line 42, in resource.databricks_job.running_prd_xml_files_sftp.job_cluster[0].new_cluster.aws_attributes:
42: "instance_profile_arn": "${secrets.aws_secrets.cluster_profile_arn}",
A managed resource "secrets" "aws_secrets" has not been declared in the root
module.
- Labels:
-
Workflows