Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure Databricks external location role exists before making it self-referential #667

Conversation

jjb007
Copy link
Contributor

@jjb007 jjb007 commented Oct 25, 2024

Summary

It was invalid to have a role policy document to refer to the same role for it. This succeeded if the role had existing previously; this was failing for new rows Instead, creating a separate aws_iam_role_policy to ensure the role is created first, and then the attachment follows.

Test Plan

  • TFE plan
  • Validated in remote-dev environment

@jjb007 jjb007 requested review from jayengee and alldoami October 25, 2024 21:41
@jjb007 jjb007 requested a review from a team as a code owner October 25, 2024 21:41
@jjb007 jjb007 changed the title fix: Ensure Databricks external location role existing before making it self-referential fix: Ensure Databricks external location role exists before making it self-referential Oct 25, 2024
@jjb007 jjb007 merged commit 6834b5b into main Oct 25, 2024
108 checks passed
@jjb007 jjb007 deleted the jbartolome/databricks-catalog-external-location-role-self-assumption-invalid-fix branch October 25, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants