diff --git a/amazon-ssm-agent/Dockerfile b/amazon-ssm-agent/Dockerfile new file mode 100644 index 0000000..d1c1989 --- /dev/null +++ b/amazon-ssm-agent/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:jessie + +MAINTAINER Ric Lister + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -yq \ + curl + +ENV AGENT_URL https://amazon-ssm-us-east-1.s3.amazonaws.com/latest/debian_amd64/amazon-ssm-agent.deb + +RUN curl ${AGENT_URL} -o amazon-ssm-agent.deb && \ + dpkg -i amazon-ssm-agent.deb && \ + rm -f amazon-ssm-agent.deb + +WORKDIR /opt/amazon/ssm/ +CMD ["./amazon-ssm-agent"] \ No newline at end of file diff --git a/amazon-ssm-agent/README.md b/amazon-ssm-agent/README.md new file mode 100644 index 0000000..3e3c1ba --- /dev/null +++ b/amazon-ssm-agent/README.md @@ -0,0 +1,7 @@ +# amazon-ssm-agent + +This is a simple installation on debian of the +[AWS EC2 Run Command agent](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/execute-remote-commands.html). + +Running this container on an ec2 instance with correct IAM permissions +will allow the running of commands _inside the container_. \ No newline at end of file