Enable AEM Edge Functions, KV Store, and Secret Store on AEM as a Cloud Service
Adobe Experience Manager as a Cloud Service (AEMaaCS) doesn’t enable AEM Edge Functions, KV Store, and Secret Store by default. These Early Adopter capabilities require activation by Adobe and additional environment configuration. To resolve the issue, request feature activation, configure the Adobe I/O CLI, deploy edgeFunctions.yaml, and then build and deploy the edge function.
Description description
Environment
- Adobe Experience Manager as a Cloud Service (AEMaaCS) (all versions)
- AEM Edge Functions Early Adopter
- KV Store
- Secret Store
Issue/Symptoms
- AEM Edge Functions, KV Store, and Secret Store need to be enabled for the target environment.
- Edge function deployment requires additional CLI and Cloud Manager configuration.
- The deployed edge function must be accessible through its expected endpoint.
Root cause
AEM Edge Functions, KV Store, and Secret Store aren’t enabled by default and require Adobe activation and customer configuration.
Resolution resolution
Follow the steps below to resolve the issue:
-
Request feature activation by contacting Adobe Support to enable the AEM Edge Functions Early Adopter program, KV Store, and Secret Store for the target environment.
-
Confirm that the account performing deployments has the AEM Administrator product profile for the target environment.
-
Install or update the Adobe I/O CLI and install the AEM Edge Functions plugin:
aio plugins:install @adobe/aio-cli-plugin-aem-edge-functions -
Configure the target environment in the CLI:
- Run:
aio aem edge-functions setup - When prompted, select the appropriate Program and Environment using the IDs shown in Cloud Manager.
- Run:
-
Prepare and deploy the Edge Functions configuration:
-
Create or update
edgeFunctions.yaml. -
Define at least one function, for example,
dm-proxy. -
To enable KV Store, add
kvs: trueunder the function definition. -
If the edge function uses secrets, create the required Cloud Manager secret variables before deploying the YAML.
-
Deploy
edgeFunctions.yamlthrough the Cloud Manager configuration pipeline. For example:code language-none edgeFunctions: dm-proxy: kvs: true # other configuration as needed
-
-
After the configuration pipeline completes, verify that the function is registered:
aio aem edge-functions list -
Build and deploy the edge function:
- Build the function:
aio aem edge-functions build - Deploy the function:
aio aem edge-functions deploy dm-proxy
- Build the function:
-
After deployment completes, use the debug endpoint URL returned by the CLI and verify that the edge function is operational.