Warning
This file is managed by terraform. Do not edit manually.
Production environment
If you're reading this, your organization's Dorkly server should now be available for serving feature flags to your code. To use those flags, ensure that:
- The correct LaunchDarkly SDK has been added to your application
- The SDK is configured to use your Dorkly server
We recommend following the LaunchDarkly SDK documentation. In particular:
- Read Getting started with SDKs
- Choose the server-side SDK or client-side SDK most suitable for your application
- Follow the instructions to install the SDK and add it to your application
- To implement the section of the instructions entitled Initialize the client, you'll need a key. Continue to the next section.
Server-side SDKs should use this SDK Key:
sdk-prod-lpwVw0o85g1gIFWt
Client-side SDKs should use this client-side id:
prod
Please follow the LaunchDarkly documentation for configuring SDKs to use a Relay Proxy.
Find the SDK-specific section for your SDK; it'll contain a code sample in which one or more endpoint URLs are specified. Copy and use this code sample, setting all the URLs to:
https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/
-
Example: Configuring a server-side SDK
Check out the LaunchDarkly hello-go example and modify the config as follows:
dorklyConfig := ld.Config{ ServiceEndpoints: ldcomponents.RelayProxyEndpoints("https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/"), } ldClient, err := ld.MakeCustomClient("sdk-prod-lpwVw0o85g1gIFWt", dorklyConfig, 10*time.Second)
-
Example: Configuring a client-side SDK
Check out the LaunchDarkly hello-js example and modify the config as follows:
// Set clientSideID to your environment name const clientSideID = 'prod'; // Set up the evaluation context. const context = { kind: 'user', key: 'example-user-key', }; const options = { baseUrl: 'https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/', streamUrl: 'https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/', eventsUrl: 'https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/', }; const ldclient = LDClient.initialize(clientSideID, context, options);
All values below and others are available as terraform outputs for easy wiring into your app.
- Endpoint for this environment:
https://dorkly-example.mbe39aim2pgh2.us-west-2.cs.amazonlightsail.com/
- client-side id:
prod
- SDK Key value:
sdk-prod-lpwVw0o85g1gIFWt
- AWS secret arn:
arn:aws:secretsmanager:us-west-2:310766071441:secret:dorkly-example-prod-sdk-key-hQas4t
- AWS secret name:
dorkly-example-prod-sdk-key
- AWS: Get secret via cli:
aws secretsmanager get-secret-value --secret-id dorkly-example-prod-sdk-key | jq -r .SecretString
- Mobile Key value:
mob-prod-d1s2BulkRyb4Q3vi
- Aws secret arn:
arn:aws:secretsmanager:us-west-2:310766071441:secret:dorkly-example-prod-mob-key-dORCOt
- Aws secret name:
dorkly-example-prod-mob-key
- Get secret using aws cli:
aws secretsmanager get-secret-value --secret-id dorkly-example-prod-mob-key | jq -r .SecretString