Chi*_*lum 2 amazon-web-services aws-cloudformation ssm aws-systems-manager
在创建 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"
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我在此字段中输入密码时,它会按原样显示确切的单词。有什么方法可以定义密码参数以显示如下
是的,你可以template.All你需要设置“NOECHO”到“真”里面的参数如图所示below.Refer使用云的形成掩盖你的密码本,并使用与NOECHO输入参数凭据在此了解更多信息。
"Parameters" : {
"DBPort" : {
"Default" : "3306",
"Description" : "TCP/IP port for the database",
"Type" : "Number",
"MinValue" : "1150",
"MaxValue" : "65535"
},
"DBPwd" : {
"NoEcho" : "true",
"Description" : "The database admin account password",
"Type" : "String",
"MinLength" : "1",
"MaxLength" : "41",
"AllowedPattern" : "^[a-zA-Z0-9]*$"
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1978 次 |
最近记录: |