nats-io / terraform-provider-jetstream

Terraform Provider to manage NATS JetStream
Apache License 2.0
55 stars 13 forks source link

handle cases where bucket or entry doesn't exist #96

Closed alxyng closed 1 year ago

alxyng commented 1 year ago

When creating a bucket or entry that was previously in terraform state but has been deleted in nats, the provider would error instead of trying to create either the bucket or entry again as expected in terraform. This was due to incorrectly handling the non-exist case in the respective read functions. This behaviour now matches that of streams/consumers.

ripienaar commented 1 year ago

Thank you