我目前正在开展概念验证,其中还涵盖使用 CloudFormation 部署 AWS Workspaces。因此,我想添加 RunningMode(“AutoStop”或“AlwaysOn”)作为参数。到目前为止,我无法弄清楚如何将其包含到 CloudFormation 模板中。有什么想法吗?
干杯,多米尼克
当前模板(简化):
{
"Parameters": {
"UserName": {
"Type": "String",
"Default": "test_user"
}
},
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"TestWorkspace1": {
"Type": "AWS::WorkSpaces::Workspace",
"Properties": {
"BundleId": "<BUNDLE_ID>",
"DirectoryId": "<DIRECTORY_ID>",
"UserName": {
"Ref": "UserName"
},
"RootVolumeEncryptionEnabled": false,
"UserVolumeEncryptionEnabled": false
}
}
},
"Outputs": {
"Username": {
"Value": {
"Fn::Join": [
"",
[
{
"Ref": "UserName"
}
]
]
},
"Description": "Workspaces Username"
},
"StaticMessage": {
"Value": "In case of first usage, you will receive a initial password for the Amazon Workspaces Client separately, once the workspace has been created.",
"Description": "Workspaces note"
}
}
}
最佳答案
我刚刚发现,您现在可以指定以下值
运行模式: RunningModeAutoStop TimeoutInMinutes:
在 Cloudformation 模板中。
关于amazon-web-services - 在 CloudFormation 模板中包含 'RunningMode' 以部署 AWS Workspaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47882337/