Skip to content

Instantly share code, notes, and snippets.

@davdunc
Forked from evandandrea/snapcraft.yaml
Last active July 10, 2017 12:04
Show Gist options
  • Save davdunc/2c6acd35e2818dde544397d6dedfc517 to your computer and use it in GitHub Desktop.
Save davdunc/2c6acd35e2818dde544397d6dedfc517 to your computer and use it in GitHub Desktop.
amazon-ssm-agent
# Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the
# "License"). You may not use this file except in compliance
# with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and
# limitations under the License.
##
# 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: '2.0.847.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
daemon: simple
plugs: [network-bind]
ssm-cli:
command: ssm-cli
aliases: [ssm-cli]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment