在创建 cloudformation 堆栈时,我将接受一些输入。Cloudformation 堆栈将创建一个 SSM 文档(AWS 系统管理器),我想在执行之前将密码作为输入参数提供给 SSM 文档。
"parameters": {
"sourceAMIid": {
"type": "String",
"description": "Source/Base AMI to be used for generating your Automated AMI",
"default": { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "HVM64"]}
},
"Username": {
"type": "String",
"description": "account username/email",
"default": "none"
},
"password": {
"type": "String",
"description": "account password",
"default": "none"
},
"productName": {
"type": "String",
"description": "The syntax of this parameter is ProductName-ProductVersion.",
"default": {
"Ref": "productName"
}
}
}
当我在此字段中输入密码时,它将按原样显示确切的单词。有什么方法可以定义密码参数显示如下