Created
January 2, 2018 15:19
-
-
Save istairbn/dc98f1657ea02ca2284e55f7d6d9cd59 to your computer and use it in GitHub Desktop.
AWS SSM Template for installing Instana on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schemaVersion":"2.2", | |
"description":"Installs Instana.", | |
"parameters":{ | |
"workingDirectory":{ | |
"type":"String", | |
"default":"/tmp", | |
"description":"(Optional) The path to the working directory on your instance.", | |
"maxChars":4096 | |
}, | |
"instanaAPIKey":{ | |
"type":"String", | |
"description":"(Required) The API key for your Instana Instance. Contact Support if you don't have one!" | |
} | |
}, | |
"mainSteps":[ | |
{ | |
"action":"aws:runShellScript", | |
"name":"install_instana", | |
"precondition":{ | |
"StringEquals":[ | |
"platformType", | |
"Linux" | |
] | |
}, | |
"inputs":{ | |
"runCommand": [ | |
"sudo curl -o setup_agent.sh https://setup.instana.io/agent", | |
"sudo chmod 700 ./setup_agent.sh", | |
"sudo ./setup_agent.sh -a {{ instanaAPIKey }} -t dynamic -l eu -s -y" | |
], | |
"workingDirectory":"{{ workingDirectory }}", | |
"timeoutSeconds":"3600" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment