在 CloudFormation 模板中包含 'RunningMode' 以部署 AWS Workspaces
Include 'RunningMode' in CloudFormation template to deploy AWS Workspaces
我目前正在进行概念验证,其中还包括使用 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"
}
}
}
我刚刚发现,您现在可以为
指定值
运行模式:
RunningModeAutoStopTimeoutInMinutes:
在 Cloudformation 模板中。
我目前正在进行概念验证,其中还包括使用 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"
}
}
}
我刚刚发现,您现在可以为
指定值运行模式: RunningModeAutoStopTimeoutInMinutes:
在 Cloudformation 模板中。