×
Blog Cloud Computing Cloud Services

Installing Application on Windows EC2 Instance using AWS SSM

In this blog, we will show you the steps to Installing Application on Windows EC2 Instance using AWS SSM.

 

ENVIRONMENT OVERVIEW

 

  • We created a windows 2012 R2 EC2 instance for this SSM demo.

Installing Application on Windows EC2 Instance using AWS SSM

 

CREATING IAM ROLE FOR AWS SSM

 

  • Go to the services page and search for the IAM service.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • Click on Roles option and create a new role.

 

  • Select the EC2 Service and click Next.

 

  • Search for AmazonEC2RoleforSSM and select it. Then click Next.

 

  • In the review page, provide the role name and description and click on create the role.

 

  • The role created successfully.

 

ASSIGNING THE ROLES TO EC2 INSTANCES

 

  • Go to the services page and access the EC2 service.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • Right-click on EC2 instance and go to instance settings and click on Attach/Replace IAM role.

 

  • Select the newly created role from the drop-down list and click the Apply button.

Installing Application on Windows EC2 Instance using AWS SSM

 

INSTALLING APPLICATION

 

  • Go to AWS services and search for systems manager.

Installing Application on Windows EC2 Instance using AWS SSM

 

Note: By default, it will take upto 5 minutes to display your machine in Systems Manager.

 

  • Click on Managed Instances under Instances & Nodes. You will able to see your EC2 machine on the list.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • To install third-party applications, click on the Run command.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • Under the command document, search for AWS-InstallApplication and select it.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • Make sure that you have selected the Install option under the command parameters section.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • We need to specify the Source MSI file path under the source section. For demo purposes, we uploaded rdman.msi in the S3 bucket.

Installing Application on Windows EC2 Instance using AWS SSM

 

Installing Application on Windows EC2 Instance using AWS SSM

 

  • We provide the S3 bucket object URL in the source field.

Installing Application on Windows EC2 Instance using AWS SSM

 

 

  • Select the instance from the Target section.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • Review all the selected options and click on the Run button.

Installing Application on Windows EC2 Instance using AWS SSM

 

  • It will take a few seconds to complete this operation.

Installing Application on Windows EC2 Instance using AWS SSM

 

VERIFY APPLICATION ON WINDOWS EC2 INSTANCE USING AWS SSM

 

  • Login into the EC2 instance and open the installed program list. You will able to see the installed application on the list.

Installing Application on Windows EC2 Instance using AWS SSM

 

REFERENCE

SYSMAN

SSMAGENT

Thanks for reading this blog. We hope it was useful for you to learn about Installing Application on Windows EC2 Instance using AWS SSM.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.