diff --git a/README-CN.md b/README-CN.md index 45505fd..c12e622 100644 --- a/README-CN.md +++ b/README-CN.md @@ -215,7 +215,9 @@ func main(){ // Which type of credential you want SetType("ecs_ram_role"). // `roleName` is optional. It will be retrieved automatically if not set. It is highly recommended to set it up to reduce requests - SetRoleName("RoleName") + SetRoleName("RoleName"). + // `EnableIMDSv2` is optional and is recommended to be turned on. It can be replaced by setting environment variable: ALIBABA_CLOUD_ECS_IMDSV2_ENABLE + SetEnableIMDSv2(true) ecsCredential, err := credentials.NewCredential(config) if err != nil { diff --git a/README.md b/README.md index 80a567d..707461c 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,9 @@ func main(){ // Which type of credential you want SetType("ecs_ram_role"). // `roleName` is optional. It will be retrieved automatically if not set. It is highly recommended to set it up to reduce requests - SetRoleName("RoleName") + SetRoleName("RoleName"). + // `EnableIMDSv2` is optional and is recommended to be turned on. It can be replaced by setting environment variable: ALIBABA_CLOUD_ECS_IMDSV2_ENABLE + SetEnableIMDSv2(true) ecsCredential, err := credentials.NewCredential(config) if err != nil {