Creating a workload secret for Cloudera Data Engineering Spark Jobs using CLI
You can create workload secrets using interactive mode or using a JSON file. You can use the --workload-cred-json-file and the --workload-cred-key flags along with the --type flag supporting workload-credential.
Before you begin
Make sure that you have downloaded the CLI client. For more information, see Using the Cloudera Data Engineering command line interface .
- Specify
--workload-cred-key
when prompted for secret values multiple times. The values which are sensitive are read as a hidden password field interactively from the CLI../cde credential create --name <workload-credential-name> --type workload-credential --workload-cred-key <workload-credential_key> --workload-cred-key <workload-credential_key>
For example:./cde credential create --name workload-cred-1 --type workload-credential --workload-cred-key db-pass --workload-cred-key aws-secret Enter Secret value for Workload Cred key "db-pass" : Re-enter Secret value for Workload Cred key "db-pass" : Enter Secret value for Workload Cred key "aws-secret" : Re-enter Secret value for Workload Cred key "aws-secret" :