Skip to content

Doesn't refresh databases #143

@gunar

Description

@gunar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions