databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[Feature] Add support partitions in policy data sources #4181

Closed ashenm closed 1 week ago

ashenm commented 3 weeks ago

Changes

Tests

ashenm commented 3 weeks ago

@hectorcast-db please take a stab at this

ashenm commented 2 weeks ago

@alexott

https://github.com/databricks/terraform-provider-databricks/blob/main/aws/data_aws_assume_role_policy.go isn't modified, especially, we need to double-check this one: https://github.com/databricks/terraform-provider-databricks/blob/main/aws/data_aws_assume_role_policy.go#L54 - the log delivery role is hardcoded

Yah nice cath! Updated all log delivery, unity catalogue, account id references https://github.com/databricks/terraform-provider-databricks/compare/5ec45228a6784ff4b1e1402b6d6ab4d2938a8a84..dc244d4375e309f9d14963be4785619c90ff0df1

for aws bucket policy, first, databricks_account_id isn't documented at all, and we need to put a comment there saying that it should be changed for non-aws partition

Yep not just bucket policy assume role policy too don't have databricks_account_id listed as a parameter; added depreciation message on both and to resolev account id depending on partition being selected when not provided

ashenm commented 2 weeks ago

@alexott any other codeowners apart from @nkvuong?

ashenm commented 2 weeks ago

Thanks @nkvuong but looks like yours and @alexott's approvals aint enough 😬

ashenm commented 2 weeks ago

Not sure about the branch protection rules maybe @mgyucht @tammyma-db @nfx @hectorcast-db maybe one of y'all can additionally approve? (judging by past commits on these files :P)

ashenm commented 2 weeks ago

Thanks @alexott one more help how to trigger the integration tests? It seems it's awaiting its succession

alexott commented 2 weeks ago

it will be merged when tests finished. don't worry...

ashenm commented 2 weeks ago

@alexott yeah but the test trigger has been skipped https://github.com/databricks/terraform-provider-databricks/actions/runs/11736462058/job/32699657127

github-actions[bot] commented 2 weeks ago

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger: go/deco-tests-run/terraform

Inputs:

Checks will be approved automatically on success.

ashenm commented 2 weeks ago

@alexott thanks for triggering those worflows; https://go/deco-tests-run/terraform must be also triggered manually I beilieve since my user don't have access to org secrets like _DECO_WORKFLOW_TRIGGER_APPID?

(Cus once again test triggers are skipped https://github.com/databricks/terraform-provider-databricks/actions/runs/11746695258/job/32770584952?pr=4181 :/)

eng-dev-ecosystem-bot commented 2 weeks ago

Test Details: go/deco-tests/11777381229

ashenm commented 2 weeks ago

@alexott any chance to see what's failing on the integration tests?

ashenm commented 2 weeks ago

Nvmd; bucket policy integrations have a overriding test bucket (in place of standard databricks aws account) fill allow override

alexott commented 2 weeks ago

it's not a relevant test, we just need to fix the environment. don't worry - PR will be merged when environment is repaired