gpt4 book ai didi

amazon-web-services - 在 CloudFormation 模板中包含 'RunningMode' 以部署 AWS Workspaces

转载 作者:行者123 更新时间:2023-12-03 07:32:25 24 4
gpt4 key购买 nike

我目前正在开展概念验证,其中还涵盖使用 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"
}
}
}

Question in AWS-Forum (Duplicate)

最佳答案

我刚刚发现,您现在可以指定以下值

运行模式:RunningModeAutoStop TimeoutInMinutes:

在 Cloudformation 模板中。

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html

关于amazon-web-services - 在 CloudFormation 模板中包含 'RunningMode' 以部署 AWS Workspaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47882337/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com