From 2e6f77e8aa4eff03da17a8708ae3ff43ba0f26e4 Mon Sep 17 00:00:00 2001 From: Ben SongGuangshun Date: Mon, 2 Sep 2024 10:22:50 +0800 Subject: [PATCH] alicloud doc: add config example --- docs/alicloud.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/alicloud.md b/docs/alicloud.md index bc58838778..71e872dc30 100644 --- a/docs/alicloud.md +++ b/docs/alicloud.md @@ -4,6 +4,26 @@ You can either edit your alicloud config directly, (usually it is `~/.aliyun/config.json`) or run `aliyun configure` and enter the credentials when prompted. +Example: + +```json +{ + "current": "default", + "profiles": [ + { + "name": "default", + "mode": "AK", + "access_key_id": "LTA***", + "access_key_secret": "mrZ***", + "region_id": "cn-hangzhou", + "output_format": "json", + "language": "en" + } + ], + "meta_path": "" +} +``` + Terraformer will pick up the profile name specified in the `--profile` parameter. It defaults to the first config in the config array.