The Fastly integration is available to customers on select plansThe Fastly integration is only available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
This integration requires LaunchDarkly’s Fastly SDKYou must install and configure the Fastly SDK to use this integration. To learn more, read Fastly SDK reference.
- In Fastly, configure a Fastly KV store for LaunchDarkly.
- In LaunchDarkly, create a Fastly integration.
- In your application, use LaunchDarkly’s Fastly edge SDK to evaluate your feature flags.
Configure a Fastly KV store for LaunchDarkly
To configure a Fastly KV store for LaunchDarkly:- In Fastly, add a new KV store. We recommend naming this
launchdarkly. - Connect this KV store with your Fastly Compute service.
- Create a new Fastly Automation API Token. Give the token permission to read and write to the new KV store. We recommend the following settings:
- Type: Automation token
- Role: Engineer
- Access: One or more services
- Create a new Origin host on your Compute Service. We recommend naming this
launchdarkly. - Configure this to have a host of
events.launchdarkly.comand a TLS port of 443. This allows the LaunchDarkly Fastly SDK to send events back to LaunchDarkly.
Create a Fastly integration
To create a new Fastly integration for your environment:- In LaunchDarkly, navigate to the Integrations page and find “Fastly.”
- Click Add integration. The “Create Fastly configuration” panel appears.
- Give the integration a human-readable Name.
- Select a LaunchDarkly Environment. You cannot change this after you configure the integration.
- In the KV Store ID field, enter the ID of the KV store to use for flag data. This is the store you created above.
- Enter the API Token field, enter a Fastly API token with “Engineer” permissions. This is the API token you created above.
- After reading the Integration Terms and Conditions, check the I have read and agree to the Integration Terms and Conditions checkbox.
- Click Save configuration.
Manage a Fastly integration
After you have created a Fastly integration, you can change its status, update it, or delete it. Here’s how:- In LaunchDarkly, navigate to the Integrations page and find “Fastly.”
- Click the arrow menu to display the existing Fastly integrations.
- Find your integration and click the pencil icon to edit. The “Edit Fastly configuration” panel appears.
- To change the status of an existing Fastly integration, toggle the Status to Off or On.
- To update an existing Fastly integration, edit the Name, KV Store ID, or API Token. Then click Save configuration.
- To delete an existing Fastly integration, click Delete.