Step 1: Configuring prerequisites
Before you begin, complete the following tasks:
Deploy the feature flag you want to experiment on: Before you can run an experiment on a feature flag, the flag must be deployed to the environment where you want to run the experiment.
Install and configure AWS AppConfig Agent: AWS AppConfig experimentation requires AWS AppConfig Agent to deliver treatments to users. Experimentation requires AWS AppConfig Agent Lambda extension version 2.0.20159 or later, or Amazon ECS/Amazon EC2 agent version 2.0.175233 or later. The following topics describe how to install and configure AWS AppConfig Agent for each supported compute environment:
Note that each section includes information about configuring IAM permissions so the agent can retrieve feature flags and other configuration data.
Configure experiment assignment logging: To capture treatment assignment data during an experiment run, set the
EXPERIMENT_ASSIGNMENT_LOG_DESTINATIONagent option (Lambda:AWS_APPCONFIG_EXTENSION_EXPERIMENT_ASSIGNMENT_LOG_DESTINATION) tostderror to a disk path such asfile:/var/log/appconfig/experiments/.