terraform-provider-scaleway
terraform-provider-scaleway copied to clipboard
Privilege RDB "readwrite" switch to custom after a certain amount of time
trafficstars
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
terraform -v
Terraform v1.6.5
on darwin_arm64
Your version of Terraform is out of date! The latest version
is 1.9.7. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
- scaleway_rdb_privilege
Terraform Configuration Files
resource "scaleway_rdb_privilege" "my_privilege" {
instance_id = MY_ID
user_name = USERNAME
database_name = DB_NAME
permission = "readwrite"
}
Actual Behavior
The privilege is actually well defined if we look at the scw console to "Permissions (Read/Write)" on the "DB_NAME" for a few minutes. After some time, it switch to "custom" in the console without any reason and cause a permission denied error if we try to query or insert an element in some table.
Steps to Reproduce
Deploy the resource
resource "scaleway_rdb_privilege" "my_privilege" {
instance_id = MY_ID
user_name = USERNAME
database_name = DB_NAME
permission = "readwrite"
}
Run terraform apply
Wait some minutes/seconds and see the privileges switching to custom
Note, if we assign back the privilege to "Permissions (Read/Write)" manually (scw console), it seems to be ok and not going back to custom.
Important Factoids
None