Asset Compute projects, and the workers they contain, must be deployed to Adobe I/O Runtime via the Adobe I/O CLI to be used by AEM as a Cloud Service.
When deploying to Adobe I/O Runtime for use by AEM as a Cloud Service Author services only two environment variables are required:
AIO_runtime_namespacepoints the Adobe Project Firefly Workspace to deploy to
AIO_runtime_authare the Adobe Project Firefly workspace’s authentication credentials
The other standard variables defined in the
.env file are implicitly provided by AEM as a Cloud Service when it invokes the Asset Compute worker.
Because this project was generated using
aio app init using the
AIO_runtime_namespace is automatically set to
81368-wkndaemassetcompute-development with the matching
AIO_runtime_auth in our local
.env file. If an
.env file exists in the directory used to issue the deploy command, its values are used, unless they are supersedes via an OS level variable export, which is how stage and production workspaces are targeted.
To deploy to the workspace define in the projects
aio app deploy
aio app get-urlto obtain the worker URL for use in the AEM as a Cloud Service Processing Profile to reference this custom Asset Compute worker. If the project contains multiple workers, discrete URLs for each worker are listed.
If local development and AEM as a Cloud Service Development environments use separate Asset Compute deployments, deployments to AEM as a Cloud Service Dev can be managed in the same manner as Stage and Production deployments.
Deploying to Stage and Production workspaces are typically done by your CI/CD system of choice. The Asset Compute project must be deployed to each Workspace (Stage and then Production) discretely.
Setting true environment variables overrides values for the same-named variables in
The general approach, typically automated by a CI/CD system, for deploying to Stage and Production environments is:
AIO_runtime_authand are obtained per workspace in Adobe I/O Developer Console via the Workspace’s Download All feature.
The values of these keys can be set by issuing export commands from the command line:
$ export AIO_runtime_namespace=81368-wkndaemassetcompute-stage $ export AIO_runtime_auth=27100f9f-2676-4cce-b73d-b3fb6bac47d1:0tDu307W6MboQf5VWB1BAK0RHp8xWqSy1CQc3lKe7f63o3aNtAu0Y3nAmN56502W
If your Asset Compute workers require any other variables, such at cloud storage, these should be exported as environment variables as well.
aio app deploy
aio app get-url.
If the Asset Compute project version changes the worker URL(s) also change to reflect the new version, and the URL will need to be updated in the Processing Profiles.
When setting up the Adobe Project Firefly project in Adobe I/O to support local development, a new Development workspace was created and Asset Compute, I/O Events and I/O Events Management APIs were added to it.
The Asset Compute, I/O Events and I/O Events Management APIs APIS are only explicitly added to the workspaces used for local development. Workspaces that integrate (exclusively) with AEM as a Cloud Service environments do not need these APIs explicitly added as the APIs are made naturally available to AEM as a Cloud Service.