Generate console.json

The developer tool requires a file named console.json that contains the necessary credentials to connect to Adobe I/O. This file is downloaded from the Adobe I/O console.

  1. Open the Asset Compute worker’s Adobe I/O project

  2. Select the project workspace to download the console.json credentials for, in this case select Development

  3. Go to the root of the Adobe I/O project and tap Download All in the upper-right corner.

  4. A file is downloaded as a .json file prefixed with the project and workspace, for example: wkndAemAssetCompute-81368-Development.json

  5. You can either

    • Rename the file as console.json and move it in the root of your Asset Compute worker project. This is the approach in this tutorial.

    • Move it into an arbitrary folder AND reference that folder from your .env file with a configuration entry ASSET_COMPUTE_INTEGRATION_FILE_PATH. The file path can be absolute or relative to the root of your project. For example:

      • ASSET_COMPUTE_INTEGRATION_FILE_PATH=/Users/example-user/secrets/wkndAemAssetCompute-81368-Development.json

      Or

      • ASSET_COMPUTE_INTEGRATION_FILE_PATH=../../secrets/wkndAemAssetCompute-81368-Development.json.json

NOTE
The file contains credentials. If you store the file within your project, make sure to add it to your .gitignore file to prevent from being shared. The same applies to the .env file – These credentials files must not be shared, or stored in Git.

Asset Compute project on GitHub

The final Asset Compute project is available on GitHub at:

GitHub contains the final state of the project, fully populated with the worker and test cases, but does not contain any credentials, that is, .env, console.json or .aio.

recommendation-more-help