Resource

dcloud_app_registry_credentials

The credentials an app's machines pull its image with from external registries: one resource owns the app's whole set, so a credential added elsewhere is removed on the next apply. Destroying it removes every credential.

Example Usage

resource "dcloud_app_registry_credentials" "web" {
  app_id = dcloud_app.web.id
  credentials = jsonencode([
    { registryHost = "ghcr.io", username = "acme-bot", passwordSecretId = dcloud_secret.ghcr_token.id },
  ])
}

Schema

Required

  • app_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • credentials (String) The credentials, [{ registryHost, username, passwordSecretId }] (the password is the value of an dcloud_secret), one per registry host; use jsonencode.

Read-Only

  • id (String) The resource's id.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_app_registry_credentials.web <app-id>

Generated from the provider's schema.