dcloud deploy env replaceReplace the whole environment of an app
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>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--varsRequiredarray 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
--redeployOptionalboolean (--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.