Skip to content

Instantly share code, notes, and snippets.

@istairbn
Created January 2, 2018 15:22
Show Gist options
  • Save istairbn/bbe46df601c78778a834ba78f136c2f2 to your computer and use it in GitHub Desktop.
Save istairbn/bbe46df601c78778a834ba78f136c2f2 to your computer and use it in GitHub Desktop.
AWS SSM Template for Installing Datadog. Uses personal branch of installer to deal with the args issue
{
"schemaVersion":"2.2",
"description":"Installs Datadog.",
"parameters":{
"workingDirectory":{
"type":"String",
"default":"/tmp",
"description":"(Optional) The path to the working directory on your instance.",
"maxChars":4096
},
"datadogAPIKey":{
"type":"String",
"description":"(Required) The API key for your Datadog Instance. Contact Support if you don't have one!"
}
},
"mainSteps":[
{
"action":"aws:runShellScript",
"name":"install_datadog",
"precondition":{
"StringEquals":[
"platformType",
"Linux"
]
},
"inputs":{
"runCommand": [
"sudo curl -o ddagent.sh https://raw.githubusercontent.com/istairbn/dd-agent/patch-1/packaging/datadog-agent/source/install_agent.sh",
"sudo bash ./ddagent.sh {{ datadogAPIKey }}"
],
"workingDirectory":"{{ workingDirectory }}",
"timeoutSeconds":"3600"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment