cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
376 stars 194 forks source link

feat: Add resource for subscriptions #244

Closed nicarl closed 1 year ago

nicarl commented 2 years ago

This PR adds the new resource postgresql_publication for managing PostgreSQL publications.

Example:

resource "postgresql_subscription" "subscription" {
  name          = "subscription"
  conninfo      = "host=localhost port=5432 dbname=mydb user=postgres password=secret"
  publications  = ["publication"]
}

Key decisions:

fix: https://github.com/cyrilgdn/terraform-provider-postgresql/issues/238

nicarl commented 2 years ago

cc @chromko maybe you can have a look at this as you added the publication resource?

nicarl commented 2 years ago

Hey @cyrilgdn I ran the tests successfully on my local machine, I would be curious if they pass in the CI

cyrilgdn commented 2 years ago

@nicarl Thanks for you work on that :+1:

I would be curious if they pass in the CI

Just triggered them!

I'll try to review as soon as possible (hopefully this week-end)

nicarl commented 2 years ago

@nicarl Thanks for you work on that 👍

I would be curious if they pass in the CI

Just triggered them!

I'll try to review as soon as possible (hopefully this week-end)

Hey, did you have time to look at this?

nicarl commented 1 year ago

Hey @cyrilgdn the tests are passing, did you have any time to look at the PR?

cyrilgdn commented 1 year ago

Sorry for the absence of response, I was a bit off the project for a while due to lack of time.

I'll review it so we can include in the next release, could you just merge master to resolve the conflict (you can revert test.yml to the master version)

cyrilgdn commented 1 year ago

This has been released in v1.18.0

nicarl commented 1 year ago

Hey, sorry I did not find time earlier. Thank you for fixing the last details and your work for this provider! :bow: