Comments (6)
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.
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.
you are correct. My bad
from ld-relay.
The ability to specify an endpoint URL is added in 5.9.0. Thank you for your feedback!
from ld-relay.
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.
@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)
- vulnerability warning CVE-2022-37434
- vulnerability warning CVE-2020-8911 and others related to AWS SDK HOT 3
- Multiple vulnerabilities found in Docker image v6.7.13 HOT 5
- LD relay fails to reconnect to Redis after Redis restarts HOT 5
- Missing Prometheus metrics on LD relay 7.0.0 HOT 7
- vulnerability warning CVE-2022-41717 HOT 2
- Give us your feedback: Distroless docker image instead of Alpine HOT 1
- ld-relay docs say it can load config from environment AND config file, but it doesn't work HOT 2
- OpenSSL vulnerabilities detected in ld-relay:7.2.2 HOT 3
- Please address CVE-2023-2650 in the Docker image HOT 1
- golang and OpenSSL vulnerabilities detected in ld-relay:7.2.5 and ld-relay:7.3.1 HOT 3
- Publish Relay Proxy Docker Images to Amazon ECR Public Gallery HOT 9
- disableInternalUsageMetrics has been removed in relay v8 HOT 4
- Docs for V6 to V7 Server SDK are not helpful HOT 3
- OpenSSL vulnerabilities detected in ld-relay:7.4.1 HOT 3
- Go grpc vulnerabilities detected in ld-relay:8.2.0 HOT 2
- Atomic update to an offline configuration archive causes subsequent changes to be missed HOT 2
- It's time to update supported Go versions
- It's time to update supported Go versions
- Feature Request - allow configuring which host ld-proxy-relay binds to HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ld-relay.