โ11-10-2022 01:56 AM
Hi team,
I want to start adding more instance profile per team . when adding it via TF , im getting the below error:
Im able BTW to add and change other databricks resources via TF .
This is my new code block:
The new role created by the TF but wasnt added to databricks, so i decided add it manually via my workspace console and im receiving the below error:
So i assume there is a general issue adding new instance profile to my workspace and its not related to a TF issue.
Please advise
Thanks!
โ11-10-2022 03:28 AM
Hi @Avi Edriโ ,
The error you see on terraform and the workspace console does not seem to be related.
For the console error:
Have you added iam:passRole permissions to the instance profile on your E2 policy? Check this doc-
For the terraform error:
Have you configured the databricks URL in the "host" parament while declaring the databricks provider? The databricks_instance_profile tf resource is looking for a workspace URL where it should create the instance profile. Authenticate the provider with the host and a PAT token and retry -
โ11-10-2022 03:28 AM
Hi @Avi Edriโ ,
The error you see on terraform and the workspace console does not seem to be related.
For the console error:
Have you added iam:passRole permissions to the instance profile on your E2 policy? Check this doc-
For the terraform error:
Have you configured the databricks URL in the "host" parament while declaring the databricks provider? The databricks_instance_profile tf resource is looking for a workspace URL where it should create the instance profile. Authenticate the provider with the host and a PAT token and retry -
โ11-10-2022 03:57 AM
Thank you @Vivian Wilfredโ
You are so correct,
So regarding the console adding error, i added this iampass with my new role and i am able to add new instance profile via workspace console.
Regarding the TF ,I added the workspace provider and it is also works now. this is great.
I have one last question, I couldnt find the main iam policy attached to the cross account role on the databricks TF module ( same policy i added the iam pass with my new role. so i had to add those config manually. can you maybe tell me if i can control this policy via the TF?
And its called by the TF as: aws_iam_role_policy.this
but couldnt find it
Thanks!
โ11-10-2022 06:39 AM
Thank you @Vivian Wilfredโ
all ok now, with the databricks console and the TF
Have a graet day!
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group