Create a Deployment
Before creating a feature-flag or experiment, you'll need to first create a deployment. In Amplitude Experiment, a deployment serves a group of flags or experiments for use in an application. Deployments have an associated key which is used to authorize requests to Amplitude Experiment's evaluation servers.
Deployments live within Amplitude Analytics projects. A project can have multiple deployments, but each deployment can only be attached to a single project.
- From Experiment, click Deployments in left nav bar, then click + Add Deployment.
- Choose the Amplitude Analytics project you'd like the deployment to be associated with. If you want to create deployments in multiple projects at once, just select all the relevant projects from the drop-down list.
- Choose a name (for example:
web) for your deployment and specify its type. Deployments are generally named after the platform (client-side) or service (server-side) which variants are served to.
- Client-side: These deployments run on a client device, such as a web browser or mobile app. The API key associated with client deployments can be viewed publicly and should be used in client-side SDKs.
- Server-side: These deployments run on a server you control, such as a web server or batch processing system. The API key associated with server deployments should be kept secret and are for use in server-side SDKs.
- Click Add Deployment.