- #Aws cli workspaces how to#
- #Aws cli workspaces install#
- #Aws cli workspaces software#
- #Aws cli workspaces code#
In the ServiceNow portal, you should now have this “reboot” option associated with your product as shown in the following example.Īs a final step, you will build ServiceNow Workflows to allow you to add approvals, notifications, open change records, and other organizational-based requirements before an order is approved. Instuctions can be found at: Once completed, you should have the service actions associated with your Amazon WorkSpaces product similar to the following example. Next, add the automation document to a new AWS Service Catalog self-service action. Test this action in Systems Manager to ensure that it’s working as expected.
Run the following command:Ĭ:\ssm>aws ssm create-document –content file://c:\ssm\wpreboot.json –name wpreboot –document-type Automation –target /AWS::WorkSpaces::Workspace In this example, the file is named wpreboot.json to create an automation document called wpreboot. "description": "(Optional) The ARN of the role that allows Automation to perform the actions on your behalf.",Īfter you create this file, execute the AWS CLI command to build the automation document and link it to Amazon WorkSpaces.Ĭomplete this task in the AWS CLI to enable the AWS::WorkSpaces::Workspace target.
#Aws cli workspaces code#
Here’s sample code for an API-driven Amazon WorkSpaces reboot ", In this example, you will create an AWS Service Catalog service action to reboot a workspace instance.įirst, create a JSON file for the Service-Action that you wish to create.
#Aws cli workspaces software#
Next, you will add AWS Service Catalog Self Service Actions, enabling you to run an AWS API call or command on the Workspace instance, including:….”Install a software package.įor each Service-Action that you want to create, you will need to add an AWS Systems Manager automation document.
Now, you can access the following Create WorkSpace Instance page to provision, upgrade, and terminate WorkSpace instances within ServiceNow.Īdding AWS Service Catalog operational actions
#Aws cli workspaces install#
Install and configure the AWS Service Catalog connector for ServiceNow.Īfter installing the prerequisites, you have an AWS Service Catalog-provisioned product. The arrows in the following diagram depict the API flow between the services when users access Amazon WorkSpaces via ServiceNow and AWS Service Catalog.ġ.
#Aws cli workspaces how to#
You will then see how to use Self-Service Actions to add operations functions directly from ServiceNow to allow users to reboot, terminate, repair, or upgrade their WorkSpaces.ĪWS Service Catalog allows you to manage commonly deployed AWS services and provisioned software products centrally. In this post, you will learn how to integrate AWS Service Catalog with ServiceNow so users can request their own WorkSpace instances inclusive of all business-level approvals and auditing. As enterprises adopt Amazon WorkSpaces as their virtual desktop solution, there is a need to implement an ITSM-based self-service offering for provisioning and operations.