nats-io / terraform-provider-jetstream

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

Context deadine exceeded #46

Closed thanhdinh-manabie closed 2 years ago

thanhdinh-manabie commented 2 years ago

I got this error when running terraform apply with this configuration

terraform {
  required_providers {
    jetstream = {
      source = "nats-io/jetstream"
      version = "0.0.28"
    }
  }
}

provider "jetstream" {
  servers     = "localhost:4222"
}

resource "jetstream_stream" "ORDERS" {
  name     = "ORDERS"
  subjects = ["ORDERS.*"]
}

resource "jetstream_consumer" "ORDERS_NEW" {
  stream_id      = jetstream_stream.ORDERS.id
  durable_name   = "NEW"
  deliver_all    = true
  filter_subject = "ORDERS.received"
}

Error logs: image

I have nats server running on local already. How could I resolve this problem? Thank you in advance.

thanhdinh-manabie commented 2 years ago

This solved. I forgot to run jetstream service when running nats server

bobbybhaskar commented 2 years ago

Hi @thanhdinh-manabie Where did you install "jetstream service" in windows or Linux. If you installed in windows, can please share the installation steps for windows jetstream

Thanks, Bobby