User Community Service Desk Downloads
If you can't find the product or version you're looking for, visit support.ataccama.com/downloads

Importing and Exporting Configurations

The Configuration Service offers the possibility to import and export all configured data for any number for deployments.

Configuration data is imported into the Configuration Service only on the first startup. In addition, the Configuration Service database needs to be empty. Otherwise, the data is not imported.

Import configurations

To import configuration data, an init-data.yml file needs to be placed in the cs/storage folder. Importing configuration data automatically creates all the necessary deployments, environments, constants, and local file systems.

If the name of the import file is changed, the Configuration Service can no longer detect it and the configuration is not imported.
All platform properties defined in init-data.yml need to be related to one of the deployments specified in the same import file. If you attempt to import platform properties for a deployment that is not created on import due to missing information, those properties are removed from the deployment configuration when you start editing it.

The init-data.yml file has the following structure:

Example Configuration (init-data.yml)
---
environments:
- name: "dev"
- name: "prod"
constants:
  constant1: "value1"
localFileSystems:
- name: "lfs1"
  environment: "prod"
  roles:
  - "admin,user"
- name: "lfs2"
  environment: "dev"
  roles:
    - ""
deployments:
- module: "mmm-be"
  environment: "prod"
  uri: "mmm-be-prod"
  publicUrl: ""
  privateUrl: ""
  isPublic: true
- module: "dpm"
  environment: "prod"
  uri: "dpm-prod"
  publicUrl: ""
  privateUrl: ""
  isPublic: false
  keys:
    - description: "dpm-key"
      type: "jwt"
      content: "content"
      fp: "fingerprint"
      expiredAt: "2021-08-21"
  properties:
    test.property1: "value1"
    test.property2: "value2"
    constant.property: "{{constant1}}"
    '#commented.property=value': ""
    ataccama.one.platform.deployments.mmm-be-prod.environment: "{{MMM-BE-PROD_ENVIRONMENT}}"

Export configurations

To export your current configuration, go to <configuration_service_url>/v1/backup and provide your credentials when prompted. The exported backup-data.yml file can be later renamed to init-data.yml and imported into another instance of the Configuration Service.

Was this page useful?