Cloud-formation script to deploy work-space
This jason script for create work-space in AWS . username . directory id need to be passed as parameters. You can select the available bundles from drop-down list.
You can refer how to run cloud-formation stacks on aws documentation.
You can refer how to run cloud-formation stacks on aws documentation.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Amazon WorkSpaces Deployment Template. This template will deploy the resources needed to deploy a single Amazon WorkSpaces desktop.\n",
"Mappings" : {
"WSTypeMap" : {
"Standard-Win10-Desktop" : {
"BundleId" : "wsb-8vbljg4r6"
}
}
},
"Parameters" : {
"UserName" : {
"Description" : "Your Windows login ID",
"Type" : "String"
},
"DirectoryID" : {
"Description" : "Directory ID",
"Type" : "String"
},
"WorkstationType" : {
"AllowedValues" : ["Standard-Win10-Desktop"],
"Description" : "Select the type of workstation",
"Default" : "Standard-Win10-Desktop",
"Type" : "String"
}
},
"Resources" : {
"MyWorkSpace" : {
"Type" : "AWS::WorkSpaces::Workspace",
"Properties" : {
"BundleId": {
"Fn::FindInMap": [
"WSTypeMap",
{
"Ref": "WorkstationType"
},
"BundleId"
]
},
"DirectoryId" : {
"Ref" : "DirectoryID"
},
"Tags" : [{"Key" : "Rule", "Value" : "allow" } ],
"UserName" : {
"Ref" : "UserName"
}
}
}
},
"Outputs" : {
"WorkSpaceID" : {
"Description" : "ID of the newly created WorkSpace",
"Value" : {
"Ref" : "MyWorkSpace"
}
},
"UserName" : {
"Description" : "The username for WorkSpace",
"Value" : {
"Ref" : "UserName"
}
},
"DirectoryID" : {
"Description" : "The username for WorkSpace",
"Value" : {
"Ref" : "DirectoryID"
}
},
"LogonURL" : {
"Description" : "Use this URL to download client software used to connect to your cloud desktop",
"Value" : "https://clients.amazonworkspaces.com/"
}
},
"Metadata" : {
"Comments" : "Template to deploy an Amazon WorkSpace",
"LastUpdated" : "2018-04-26",
"Version" : "1.0.0",
"AWS::CloudFormation::Interface" : {
"ParameterGroups" : [
{
"Label" : {
"default" : "Setup"
},
"Parameters" : [
"UserName",
"WorkstationType",
"Directory ID"
]
}
],
"ParameterLabels" : {
"UserName" : {
"default" : "User Name"
},
"WorkstationType" : {
"default" : "WorkstationType"
},
"DirectoryID" : {
"default" : "Directory ID"
}
}
}
}
}
Comments
Post a Comment