dcloud deploy env replace

Replace the whole environment of an app

IAM deploy:ManageEnvChanges stateAsks before it deletes (-y skips)

Binding a secret needs secrets:GetSecretValue on it and grants it to the deploy consumer. Saving does not restart the app. Pass redeploy: true to roll the live deployment’s own source onto the new configuration (also needs deploy:DeployApp); otherwise the response and GET …/env report pending until someone redeploys.

Synopsis

dcloud deploy env replace id --vars vars [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --varsRequired

    array of json

    The complete environment: each entry is a key with valueKind plain (and plainValue, one line) or secret (and kmsSecretId, the Secret to bind). Keys left out are removed

  • --redeployOptional

    boolean (--redeploy / --no-redeploy)

    Also roll the live deployment onto the new environment; default false

Example

dcloud deploy env replace id --vars '["example"]'

Generated from the API description, the same one the API checks requests against and the CLI is built from.