Giter Site home page Giter Site logo

Comments (6)

missourian55 avatar missourian55 commented on May 20, 2024 1

Please ignore below comments, documentation clearly dictates that tables has to be created before hand. All working now..

@eli-darkly Thank you that resolved "missing region" error, do I need to create the table in advance or relay proxy will create the required tables? I am seeing a new error

[env: test-dev] 2019/12/21 15:57:54 WARN: Detected persistent store unavailability; updates will be cached until it recovers
[env: test-dev] 2019/12/21 15:57:54 ERROR: Error initializing store: failed to get existing items prior to Init: ResourceNotFoundException: Cannot do operations on a non-existent table
	status code: 400, request id: 7a04b629-67bc-434c-96ba-1228f98a8b38
[env: test-dev] 2019/12/21 15:58:03 WARN: Timeout encountered waiting for LaunchDarkly client initialization
[env: test-dev] 2019/12/21 15:58:03 ERROR: Error initializing LaunchDarkly client for test-dev: timeout encountered waiting for LaunchDarkly client initialization

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024

It sounds like the only new parameter you would need is for the endpoint URL, since it is already possible to set the AWS keys and region via environment variables or local AWS config files. Is that right?

from ld-relay.

missourian55 avatar missourian55 commented on May 20, 2024

you are correct. My bad

from ld-relay.

bwoskow-ld avatar bwoskow-ld commented on May 20, 2024

The ability to specify an endpoint URL is added in 5.9.0. Thank you for your feedback!

from ld-relay.

missourian55 avatar missourian55 commented on May 20, 2024

Thank you, just gave this is a try I am getting below error

INFO: 2019/12/21 04:15:32 ld-relay.go:59: Starting LaunchDarkly relay version 5.9.0 with configuration file /ldr/ld-relay.conf plus environment variables
INFO: 2019/12/21 04:15:32 relay.go:542: Using DynamoDB feature store: DEV_LAUNCHDARKLY with prefix: ld:test:dev
INFO: 2019/12/21 04:15:32 logging.go:264: INFO: DynamoDBFeatureStore: Using DynamoDB table DEV_LAUNCHDARKLY
[env: test-dev] 2019/12/21 04:15:32 INFO: Proxying events for this environment
[env:test-dev] 2019/12/21 04:15:32 INFO: Starting LaunchDarkly client 4.13.1
[env: test-dev] 2019/12/21 04:15:32 INFO: Starting LaunchDarkly streaming connection
[env: test-dev] 2019/12/21 04:15:32 INFO: Waiting up to 10000 milliseconds for LaunchDarkly client to start...
[env: test-dev] 2019/12/21 04:15:32 INFO: Connecting to LaunchDarkly stream
INFO: 2019/12/21 04:15:32 metrics.go:203: Successfully registered Prometheus exporter.
INFO: 2019/12/21 04:15:32 ld-relay.go:106: Starting server listening on port 8030
[env: test-dev] 2019/12/21 04:15:33 WARN: Detected persistent store unavailability; updates will be cached until it recovers
[env: test-dev] 2019/12/21 04:15:33 ERROR: Error initializing store: failed to get existing items prior to Init: MissingRegion: could not find region configuration
[env: test-dev] 2019/12/21 04:15:42 WARN: Timeout encountered waiting for LaunchDarkly client initialization
[env: test-dev] 2019/12/21 04:15:42 ERROR: Error initializing LaunchDarkly client for test-dev: timeout encountered waiting for LaunchDarkly client initialization

Config

    [main]
    streamUri = "https://stream.launchdarkly.com"
    baseUri = "https://app.launchdarkly.com"
    exitOnError = true
    port = 8030
    heartbeatIntervalSecs = 15

    #[redis]
    #host = "redis.default.svc.cluster.local"
    #port = 6379
    #localTtl = 30000

    [DynamoDB]
    enabled = true
    url = "http://dynamodb:8000"
    localTtl = 30000

    [events]
    eventsUri = "https://events.launchdarkly.com"
    sendEvents = true
    flushIntervalSecs = 5
    samplingInterval = 0
    capacity = 10000

    [environment "test-dev"]
    sdkKey = "real-key-goes here"
    mobileKey = ""
    envId = ""
    prefix="ld:test:dev"
    tableName = "DEV_LAUNCHDARKLY"

    [prometheus]
    enabled = true
    port = 8031
    prefix = ""
---

In Kubernetes deployment of relay I inject below three

        env:
          - name: AWS_ACCESS_KEY_ID
            value: >-
              fake_access
          - name: AWS_SECRET_ACCESS_KEY
            value: >-
              fake_secret_access
          - name: AWS_DEFAULT_REGION
            value: >-
              us-west-2

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024

@missourian55 - Have you tried setting the variable AWS_REGION instead of AWS_DEFAULT_REGION? I believe that some of the AWS tools use one and some use the other, and that the AWS Go SDK used by Relay might require AWS_REGION. Relay does not directly set any of those AWS parameters so it is really just a matter of setting the right environment variables.

from ld-relay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.