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

标签 amazon-web-services aws-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"
    }
  }
}

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/

相关文章:

amazon-web-services - AWS CDK - 如何调试挂起的部署?

amazon-web-services - AWS : How to configure Cloudfront for Custom Domain Names

amazon-web-services - AWS 步骤函数 : Adding States. 将输出格式化为顶层输入

python - Boto3 S3,按上次修改对桶进行排序

amazon-web-services - 用于编排 AWS CloudFormation 模板执行的工具

amazon-web-services - AWS CloudFormation 和服务目录 - 我可以要求带有用户值的标签吗?

amazon-web-services - 如何创建 SNS 订阅过滤策略

amazon-web-services - Fn::ImportValue 在自定义资源中不起作用

amazon-web-services - Amazon MWAA Airflow - 任务容器在没有日志的情况下关闭/停止/终止

amazon-web-services - Cloudformation - 创建不同区域的资源