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

Doesn't refresh databases #143

Open
gunar opened this issue Feb 22, 2022 · 0 comments
Open

Doesn't refresh databases #143

gunar opened this issue Feb 22, 2022 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@gunar
Copy link

gunar commented Feb 22, 2022

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already)

Issue details

The functions new postgres.Role and new postgres.Database do not check if the resource has been deleted manually. Not even with the -r argument (ie pulumi preview -r).

Steps to reproduce

  1. Provision a role and database
   const role = new postgres.Role(
     "myrole",
     {
       name: "myrole",
       login: true,
       password: password,
     },
     { provider }
   );
   const database = new postgres.Database(
     "mydatabase",
     {
       name: role.name,
       owner: role.name,
     },
     {
       provider,
     }
   );
  1. Delete the ROLE and the DATABASE manually
  2. Run pulumi preview -r

Expected: Pulumi should try to recreate the resources
Actual: Pulumi doesn't try to recreate the resources

@gunar gunar added the kind/bug Some behavior is incorrect or out of spec label Feb 22, 2022
@viveklak viveklak added kind/bug Some behavior is incorrect or out of spec and removed kind/bug Some behavior is incorrect or out of spec labels Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants