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

Add postrgesql.User #123

Open
Comradin opened this issue Jun 7, 2021 · 2 comments
Open

Add postrgesql.User #123

Comradin opened this issue Jun 7, 2021 · 2 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/enhancement Improvements or new features

Comments

@Comradin
Copy link

Comradin commented Jun 7, 2021

We tried to add a Role() to our AWS Redshift cluster and this resulted in a SQL error message:

error: error creating role my_user: pq: syntax error at or near "ROLE"

@t0yv0 pointed out in the Pulumi Slack, that Redshift in particular does not support the more modern CREATE ROLE and instead still uses the older CREATE USER construct, but the pulumi PostgreSQL provider does not support this.

Affected feature

Adding the User() would help to use the Pulumi PostgreSQL provider with older or forked versions of PostreSQL.

@Comradin Comradin added the kind/enhancement Improvements or new features label Jun 7, 2021
@lukehoban
Copy link

This looks like it's tracked upstream in hashicorp/terraform-provider-postgresql#147. When that is addressed, we'll pick up the fix here. It might be necessary to port that issue over to the new github.com/cyrilgdn/terraform-provider-postgresql repo to track there as well since that is where active development is happening now.

@lukehoban lukehoban added the awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). label Jun 8, 2021
@bombillazo
Copy link

Any alternative on how to provision users to a PostgreSQL DB using Pulumi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants