Closed6

copilot secret initについて

筧剛彰 / Takaaki Kakei筧剛彰 / Takaaki Kakei
筧剛彰 / Takaaki Kakei筧剛彰 / Takaaki Kakei

実行例

% copilot secret init --cli-input-yaml copilot-env-input.yml                                                         2023/12/27 10:05:55 
...Put secret ENABLE_GOOGLE_GEMINI_PRO to environment dev-rdws
✔ Successfully put secret ENABLE_GOOGLE_GEMINI_PRO in environment dev-rdws as /copilot/ai-starter/dev-rdws/secrets/ENABLE_GOOGLE_GEMINI_PRO.

You can refer to these secrets from your manifest file by editing the `secrets` section.

secrets:
    ENABLE_GOOGLE_GEMINI_PRO: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/ENABLE_GOOGLE_GEMINI_PRO
筧剛彰 / Takaaki Kakei筧剛彰 / Takaaki Kakei

同じパラメータは--overwrite flag.をつけないと上書きしないらしい。素晴らしい。

% copilot secret init --cli-input-yaml copilot-env-input.yml                                                         2023/12/27 10:06:21 
...Put secret ENABLE_GOOGLE_GEMINI_PRO to environment dev-rdws
✔ Secret ENABLE_GOOGLE_GEMINI_PRO already exists in environment dev-rdws as /copilot/ai-starter/dev-rdws/secrets/ENABLE_GOOGLE_GEMINI_PRO. Did not overwrite. 

Note: If you want to overwrite an existing secret, use the `--overwrite` flag.
You can refer to these secrets from your manifest file by editing the `secrets` section.

secrets:
    ENABLE_GOOGLE_GEMINI_PRO: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/ENABLE_GOOGLE_GEMINI_PRO
このスクラップは2023/12/27にクローズされました