Amazon-setting up AWS Systems Manager

Posted: April 26, 2018 in Amazon Web Services (AWS), Windows Server

AWS Systems Manager is a management service that helps automatically collect software inventory, apply OS patches, create system images, and configure Windows and Linux operating systems (running scripts).

Creating System Manager role

In AWS console click on IAM

6

Roles-create role, choose EC2 and click next

Untitled.png

Then select EC2 Role for Simple Systems Manager and click Next

Untitled.png

in Attached permission policy select AmazonEC2RoleforSSM

Untitled

Click next, give role a name and click Create role

Assigning role to EC2 instance

In this example i used Windows Server 2016 EC2 instance.Select EC2 in list of services, select instance-Action-Instance Setting-Attach/Replace IAM Role

Untitled

Select System Manager Role and click Apply

Untitled

Installing  SSM agent

Login to EC2 instance,download and install SSM agent.Start service:

Start-Service AmazonSSMAgent

 

Running command

In AWS console-EC2 service-Scroll until SYSTEM MANAGER SHARED RESOURCES-Managed instances

 

Untitled.png

 

Select instance and click Run a command

Untitled.png

 

Select one of the commands

Untitled

 

Type command and click Run

Untitled.png

Click on Command ID

 

Untitled.png

 

Then click output-View Output

Untitled

 

Untitled.png

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s