Open emancu opened 1 year ago
I ran into this issue as well with provider version 0.87.2. I have a share with well over 10 accounts attached and see no way with Terraform to iterate through the accounts. The "10 account limit" appears to be a Snowflake limit, I get the same message in the WebUI, however the Terraform provider should account for this.
Hey @jhughes-naic. Thanks for reaching out to us.
We have this issue listed for https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#preparing-the-rest-of-the-fundamental-ga-objects-for-the-provider-v1 (https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/REMAINING_GA_OBJECTS.MD).
I am also running into this issue as well. I cannot find away around it either. Even with incrementally adding 10 shares at a time.
Provider Version
0.72.0
Terraform Version
1.4
Describe the bug
It is not a bug, its a limitation on the API. The problem is, there is no way in terraform to add multiple accounts to a single share.
Gives the following error:
Expected behavior
The provider generates the query using
ADD ACCOUNTS
, which technically it is prepared to append accounts without removing existing ones; however there is no way to iterate over accounts and append them to the share using terraform when there are more than 10 accounts.I would expect a way to at least iterate over accounts using
ADD ACCOUNT | REMOVE ACCOUNT
.