本文为您介绍如何在创建资源实例时设置二次确认实例密码。
背景信息
当创建资源栈,指定参数密码时,由于只需输入一次密码,可能出现由于手误输入一个错误的密码,导致无法登录已创建的ECS实例、RDS实例或其它产品实例的现象。
操作步骤
- 当编辑资源栈模板时,在
InstancePassword块中,设置密码参数属性Confirm为true。"InstancePassword": { "Confirm": true, "NoEcho": true, "MaxLength": "41", "Description": "The login password of ECS instances", "Type": "String", "ConstraintDescription": "Consist of 8 to 41 characters of alphanumeric characters", "MinLength": "8", "AllowedPattern": "[a-zA-Z0-9]*" },重要 Confirm属性只能用于NoEcho为true的参数中。 - 当创建资源栈时,在配置模板参数页面,设置实例密码。
该文章对您有帮助吗?