Use modify
to redeploy existing app. Otherwise use deploy
.
export ANYPOINT_ENV=UAT2 && anypoint-cli --bearer <<token>> runtime-mgr cloudhub-application modify \
--runtime "4.3.0" \
--workers "1" \
--workerSize "0.1" \
--region "ap-southeast-2" \
--property "anypoint.platform.client_id:<<client_id>>" \
--property "anypoint.platform.client_secret:<<client_secret>>" \
"<<app_name>>" "<<app_artifact_path>>"
To change environment, run export ANYPOINT_ENV=UAT2
before the CLI command.