Voiced by Amazon Polly |
Overview
Deploying software efficiently and securely across multiple environments is critical to modern IT management. Amazon WorkSpaces, a fully managed, secure Desktop-as-a-Service (DaaS) solution combined with AWS Systems Manager, provides a robust framework for managing and deploying software to virtual desktops. This blog will guide you in using AWS Systems Manager to deploy software to Amazon WorkSpaces, ensuring a seamless, scalable, and automated approach.
Why Use AWS Systems Manager for Software Deployment?
AWS Systems Manager offers several benefits for software deployment, including:
- Automation: Automate repetitive tasks and workflows, reducing manual effort and errors.
- Scalability: Manage and deploy software to thousands of instances with ease.
- Centralized Management: Maintain a single pane of glass for managing your infrastructure.
- Security and Compliance: Leverage AWS’s security features to maintain compliance and secure operations.
Pioneers in Cloud Consulting & Migration Services
- Reduced infrastructural costs
- Accelerated application deployment
Prerequisites
Before we dive into the deployment process, ensure you have the following prerequisites in place:
- Amazon WorkSpaces Environment: Set up your Amazon WorkSpaces environment with the required WorkSpaces running.
- AWS IAM Roles: Ensure you have the necessary IAM roles and permissions to allow the AWS Systems Manager to interact with your Amazon WorkSpaces.
- AWS CLI: Install and configure the AWS Command Line Interface (CLI) on your management machine.
- Software Package: Have the software package ready for deployment.
Step-by-Step Guide to Software Deployment
AWS Systems Manager:
- In the AWS Systems Manager console, navigate to Instances and Nodes, select Hybrid Activations, and then click Create an Activation.
- In the Activation settings, you can enter an optional description, specify the number of instances you want to manage, choose the AWS IAM role that facilitates communication between the SSM Agent and the managed instances, and provide an optional default instance name. After filling in these details, click on Create Activation.
- Once you get a success notification, make sure to copy the activation code and activation ID, as you will need them for the next step.
Amazon WorkSpaces:
For Windows WorkSpace, follow the below steps:
- Launch and log in to your Amazon WorkSpaces app.
- Open PowerShell with administrative privileges.
- Copy the commands below into Notepad, and substitute the highlighted placeholders with the activation code, activation ID, and AWS Region.
1 2 3 4 5 6 7 8 9 10 |
$code = "activation-code" $id = "activation-id" $region = "region" $dir = $env:TEMP + "\ssm" New-Item -ItemType directory -Path $dir -Force cd $dir (New-Object System.Net.WebClient).DownloadFile("https://amazon-ssm-$region.s3.amazonaws.com/latest/windows_amd64/AmazonSSMAgentSetup.exe", $dir + "\AmazonSSMAgentSetup.exe") Start-Process .\AmazonSSMAgentSetup.exe -ArgumentList @("/q", "/log", "install.log", "CODE=$code", "ID=$id", "REGION=$region") -Wait Get-Content ($env:ProgramData + "\Amazon\SSM\InstanceData\registration") Get-Service -Name "AmazonSSMAgent" |
- Press Enter
For Linux Workspace, follow the below steps:
- Launch and log in to your Amazon WorkSpaces app.
- Access a Linux terminal and execute commands with administrative privileges.
- Enter the commands provided below into the terminal, ensuring you substitute the highlighted placeholders with the appropriate activation code, activation ID, and AWS Region.
1 2 3 4 5 6 |
mkdir /tmp/ssm curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm -o /tmp/ssm/amazon-ssm-agent.rpm sudo yum install -y /tmp/ssm/amazon-ssm-agent.rpm sudo systemctl stop amazon-ssm-agent sudo amazon-ssm-agent -register -code "activation-code" -id "activation-id" -region "region" sudo systemctl start amazon-ssm-agent |
- Press Enter
The above command Registers the workspace with the SSM Agent and displays the SSM Agent’s running status.
Conclusion
Deploying software to Amazon WorkSpaces using AWS Systems Manager offers a powerful, scalable, and secure solution for modern IT management.
Following these steps ensures a seamless and efficient deployment, enabling your organization to focus on productivity and innovation while minimizing manual effort and errors. With AWS Systems Manager and Amazon WorkSpaces, you can achieve a robust and reliable software deployment strategy tailored to your organization’s needs.
Drop a query if you have any questions regarding Amazon WorkSpaces and we will get back to you quickly.
Experience Effortless Cloud Migration with Our Expert Solutions
- Stronger security
- Accessible backup
- Reduced expenses
About CloudThat
CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.
CloudThat is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training Partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, AWS Microsoft Workload Partners, Amazon EC2 Service Delivery Partner, and many more.
To get started, go through our Consultancy page and Managed Services Package, CloudThat’s offerings.
FAQs
1. Why should I use AWS Systems Manager for software deployment?
ANS: – AWS Systems Manager provides several advantages, including automation of repetitive tasks, scalability for managing thousands of instances, centralized management of your infrastructure, and enhanced security and compliance features.
2. Can I automate software updates using AWS Systems Manager?
ANS: – Yes, AWS Systems Manager allows you to automate software updates, ensuring that all managed instances are up to date with the latest software versions and patches.
![](https://content.cloudthat.com/resources/wp-content/uploads/2023/03/Aniket-150x150.jpg)
WRITTEN BY Aniket Kumar Ambasta
Aniket Kumar Ambasta works as a Research associate- TC - Infra, Security, and Migration at CloudThat. He is AWS Solutions Architect- Associate certified and has completed his Bachelor's in Computer Applications. He has good experience in Cloud technologies. Apart from professional interests, he loves exploring and learning new technologies.
Comments