You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
postgresql_role.user["spendanalytics"]: Creating...
2020/06/11 15:44:24 [DEBUG] postgresql_role.user["spendanalytics"]: apply errored, but we're indicating that via the Error pointer rather than returning it: error creating role spendanalytics: pq: syntax error at or near "ROLE"
2020/06/11 15:44:24 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: error creating role spendanalytics: pq: syntax error at or near "ROLE"
2020/06/11 15:44:24 [ERROR] <root>: eval: *terraform.EvalSequence, err: error creating role spendanalytics: pq: syntax error at or near "ROLE"
Error: error creating role spendanalytics: pq: syntax error at or near "ROLE"
on roles.tf line 9, in resource "postgresql_role" "user":
9: resource "postgresql_role" "user" {
Panic Output
N/A
Expected Behavior
A new role is created.
Actual Behavior
Error: error creating role spendanalytics: pq: syntax error at or near "ROLE"
Steps to Reproduce
Configure the postgresql provider to connect to a Redshift cluster.
Also in the provider config, set expected_version = "8.0". Redshift is closest to PostgreSQL 8.
Use the postgresql_role resource to create a new role.
Important Factoids
Redshift is sort of like PostgreSQL 8. Issue #3 and PR #12 suggest that at some point in the past, changes were made to enable this provider to create roles in Redshift. But, I can't seem to figure out how to get it to work.
Options here include making the query dependent on the Postgres version or perhaps allowing a user specified attribute to override the object (e.g., type = "role" (default) or type = "user").
We are looking at this at @TakeScoop and will probably be able to contribute some PRs to help add further Redshift compatibility.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
N/A
Expected Behavior
A new role is created.
Actual Behavior
Steps to Reproduce
postgresql
provider to connect to a Redshift cluster.expected_version = "8.0"
. Redshift is closest to PostgreSQL 8.postgresql_role
resource to create a new role.Important Factoids
Redshift is sort of like PostgreSQL 8. Issue #3 and PR #12 suggest that at some point in the past, changes were made to enable this provider to create roles in Redshift. But, I can't seem to figure out how to get it to work.
References
The text was updated successfully, but these errors were encountered: