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

feat: Delete ownership grant updates #1334

Merged

Conversation

cinglish
Copy link
Contributor

@cinglish cinglish commented Nov 1, 2022

Test Plan

  • acceptance tests

References

@cinglish cinglish changed the title Delete ownership grant updates feat: Delete ownership grant updates Nov 1, 2022
@cinglish
Copy link
Contributor Author

cinglish commented Nov 1, 2022

This PR adds an attribute, revert_ownership_to, to both the user_ownership_grant and role_ownership_grant resources to transfer ownership to the provided role instead of defaulting to ACCOUNTADMIN. This fixes an issue we were facing in which we could not run terraform destroy successfully due to DROP ROLE statements failing on snowflake_role resources after their respective snowflake_role_ownership resources were deleted.

@sfc-gh-swinkler
Copy link
Collaborator

/ok-to-test sha=d03a4ea

@github-actions
Copy link

github-actions bot commented Nov 7, 2022

Integration tests success for d03a4ea

@sfc-gh-swinkler
Copy link
Collaborator

@cinglish can you please run make docs again? since the schema changed after you renamed the attribute. thanks in advance!

@sfc-gh-swinkler sfc-gh-swinkler merged commit 4e6aba7 into Snowflake-Labs:main Nov 7, 2022
@sfc-gh-swinkler
Copy link
Collaborator

@cinglish thank you for your contribution!

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