Coder Social home page Coder Social logo

aws-ssm's Introduction

aws-ssm

Installation and setup guide for aws ssm agent for target remote machine

Agenda:- Using aws system manager with ssm-agent to execute commands/scripts on multiple remote servers.

Prerequisite:-

  1. you should have aws account with admin access or aws account with aws system manager full access.
  2. target server(it could be bare matel , vm or cloud server). Here we are using aws linux server as a target server.

Steps:-

  1. create activation code and activation id using "hybrid activation" in aws system manager.

  2. Install amazon ssm agent and configure it on target remote machine. login into target machine and run below command.

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 -E amazon-ssm-agent -register -code "activation-code" -id "activation-id" -region "region"
sudo systemctl start amazon-ssm-agent
  1. varify added target machine in "fleet manager" in aws system manager. It should be online.

  2. configure execution command for remote server using "run command" in aws system manager. sample script:-

#!/bin/bash
mkdir test
cd test
touch sample.txt
echo "Hello world" >> sample.txt
  1. run configured command.

###########Thank you############### Please like and share this video This installation document is available at below git link https://github.com/LOKI0307/aws-ssm

aws-ssm's People

Contributors

loki0307 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.