Amazon WorkSpaces Cost Optimizer
Amazon WorkSpaces Cost Optimizer

Automated Deployment

Before you launch the automated deployment, please review the architecture, configuration, and other considerations discussed in this guide. Follow the step-by-step instructions in this section to configure and deploy Amazon WorkSpaces Cost Optimizer into your account.

Time to deploy: Approximately five minutes

Launch the Stack

This automated AWS CloudFormation template deploys the Amazon WorkSpaces Cost Optimizer on the AWS Cloud.


You are responsible for the cost of the AWS services used while running this solution. See the Cost section for more details. For full details, see the pricing webpage for each AWS service you will be using in this solution.

  1. Sign in to the AWS Management Console and choose the button below to launch the workspaces-cost-optimizer AWS CloudFormation template.

                                Amazon WorkSpaces Cost Optimizer launch button

    You can also download the template as a starting point for your own implementation.

  2. The template is launched in the US East (N. Virginia) Region by default. To launch the Amazon WorkSpaces Cost Optimizer in a different AWS Region, use the region selector in the console navigation bar.


    This solution uses AWS Lambda and Amazon WorkSpaces, which are currently available in specific AWS Regions only. Therefore, you must launch this solution in an AWS Region where both of these services are available. Also, you must launch this solution in the same region as the WorkSpaces you want to monitor. (For the most current AWS Lambda availability by region, see the AWS service offerings by region).

  3. On the Select Template page, verify that you selected the correct template and choose Next.

  4. Under Parameters, review the parameters for the template and modify them as necessary. This solution uses the following default values.

    Parameter Default Description
    Launch in Dry Run Mode? Yes Generates a change log, but does not execute any changes
    Simulate End of Month No Overrides date and forces the solution to run as if it is the end of the month
    Log Level INFO Sets the log level for the Lambda function logs in CloudWatch
    Send Anonymous Usage Data Yes The Send anonymous data to AWS to help us understand WorkSpaces Cost Optimizer usage and estimated cost savings across our customer base as a whole. To opt out of this feature, select No. For more information, see the appendix.
    Value Limit 81 The number of hours a Value instance can run in a month before being converted to ALWAYS_ON
    Standard Limit 85 The number of hours a Standard instance can run in a month before being converted to ALWAYS_ON
    Performance Limit 83 The number of hours a Performance instance can run in a month before being converted to ALWAYS_ON
    Power Limit 83 The number of hours a Power instance can run in a month before being converted to ALWAYS_ON
    Graphics Limit 217 The number of hours a Graphics instance can run in a month before being converted to ALWAYS_ON
  5. Choose Next.

  6. On the Options page, choose Next.

  7. On the Review page, review and confirm the settings. Be sure to check the box acknowledging that the template will create AWS Identity and Access Management (IAM) resources.

  8. Choose Create to deploy the stack.

    You can view the status of the stack in the AWS CloudFormation console in the Status column. You should see a status of CREATE_COMPLETE in approximately five minutes.


In addition to the workspaces-cost-optimizer-parent and workspaces-cost-optimizer-child AWS Lambda functions, this solution includes the solution-helper Lambda function, which runs only during initial configuration or when resources are updated or deleted.

When running this solution, you will see all AWS Lambda functions in the AWS console, but only the workspaces-cost-optimizer function is regularly active. However, do not delete the solution-helper function as it is necessary to manage associated resources.

On this page: