Skip to content

verchalent/workspaces-cost-optimizer

 
 

Repository files navigation

WorkSpaces Cost Optimizer

Amazon WorkSpaces, a fully managed, secure virtual desktop computing service on the AWS Cloud, eliminates the need for customers to procure, deploy, and manage complex virtual desktop environments. Amazon WorkSpaces offers the flexibility to pay hourly or monthly without any up-front commitment.

To help customers with unpredictable WorkSpace usage patterns monitor their Amazon WorkSpaces usage and optimize costs, AWS offers the Amazon WorkSpaces Cost Optimizer, a solution that analyzes all of your WorkSpace usage data and automatically converts the WorkSpace to the most cost-effective billing option (hourly or monthly) depending on the user's individual usage. This solution is easy to deploy and uses AWS CloudFormation to automatically provision and configure the necessary AWS services.

Getting Started

Deploy the WorkSpaces Cost Optimizer CloudFormation Template

For the full solution overview visit WorkSpaces Cost Optimizer on AWS

Building from Source

Clone the repository

git clone [email protected]:awslabs/workspaces-cost-optimizer.git

Set the destination bucket name- this bucket should be in the region you're deploying the solution to.

export BUCKET_NAME=<YOUR_BUCKET_NAME>
export VERSION=<VERSION>
## NOTE THAT the region is appended to the Bucket_Name (BUCKET_NAME-REGION) when deployed, so created a bucket with only Bucket_Name will not work.

Run the build script.

chmod +x "./deployment/build-s3-dist.sh" && "./deployment/build-s3-dist.sh" $BUCKET_NAME $VERSION

Upload the artifacts.

aws s3 cp ./deployment/dist/ s3://$BUCKET_NAME-[region]/workspaces-cost-optimizer/$VERSION --recursive

You should now have everything in place to run the CloudFormation template (either from your bucket or from ./deployment/dist/).

Running Unit Tests

chmod +x "./deployment/run-unit-tests.sh" && "./deployment/run-unit-tests.sh"

Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/asl/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.3%
  • Shell 4.7%