Skip to content

Instantly share code, notes, and snippets.

@evandandrea
Last active July 10, 2017 05:54
Show Gist options
  • Save evandandrea/99cb404122fcc2d22f5fca27d1550cad to your computer and use it in GitHub Desktop.
Save evandandrea/99cb404122fcc2d22f5fca27d1550cad to your computer and use it in GitHub Desktop.
amazon-ssm-agent
# TODO:
# The agent currently hardcodes paths. Open a PR to make these configurable:
# https://github.com/aws/amazon-ssm-agent/blob/master/agent/appconfig/constants_unix.go
name: amazon-ssm-agent
version: '1.14.0'
summary: Agent to enable remote management of your Amazon EC2 instance configuration
description: |
The SSM Agent runs on EC2 instances and enables you to quickly and easily
execute remote commands or scripts against one or more instances. The agent
uses SSM documents. When you execute a command, the agent on the instance
processes the document and configures the instance as specified. Currently,
the SSM Agent and Run Command enable you to quickly run Shell scripts on an
instance using the AWS-RunShellScript SSM document.
confinement: devmode
grade: stable
apps:
amazon-ssm-agent:
command: amazon-ssm-agent
parts:
ssm-agent:
plugin: nil
build: |
export GOPATH=$(readlink -m ../go)
SRC=$GOPATH/src/github.com/aws/amazon-ssm-agent
mkdir -p $(dirname $SRC)
rsync -az . $SRC
cd $SRC
make build-linux
make prepack-linux
mv bin/prepacked/linux_amd64/* $SNAPCRAFT_PART_INSTALL
@davdunc
Copy link

davdunc commented Jul 10, 2017

Updated the version and added the ssm-cli command https://gist.github.com/davdunc/2c6acd35e2818dde544397d6dedfc517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment