繁体   English   中英

在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"
    }
  }
}

AWS论坛中的问题(重复)

我刚刚发现,您现在可以为

RunningMode:RunningModeAutoStopTimeoutInMinutes:

在Cloudformation模板中。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM