issues
search
petoju
/
terraform-provider-mysql
Terraform MySQL provider – unofficial fork
https://registry.terraform.io/providers/petoju/mysql
Mozilla Public License 2.0
63
stars
40
forks
source link
Schematize resource_grant
#102
Closed
DerekTBrown
closed
5 months ago
DerekTBrown
commented
5 months ago
What does this PR do?
The
resource_grant
resource is very convoluted. For instance, the database might not be a database, and the table might not be a table (e.g.
https://github.com/petoju/terraform-provider-mysql/pull/98/files#r1451607847
).
To fix this, I introduced various structs, which makes the logic for parsing grants much easier to read.
I additionally added first-class support for procedure grants (
https://github.com/petoju/terraform-provider-mysql/issues/99
).
This sets the stage for subsequent PRs to actually create separate Terraform resources for each of these things, which would make the logic far easier to manage.
petoju
commented
5 months ago
Released in 3.0.44
What does this PR do?
resource_grant
resource is very convoluted. For instance, the database might not be a database, and the table might not be a table (e.g. https://github.com/petoju/terraform-provider-mysql/pull/98/files#r1451607847).