Get easyTravel up and running with the OneAgent on AWS in minutes with this repo!
- Terraform must be installed on your local machine. This can be done using this link: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli
- You must have a working GitHub account: https://github.com/join
- You must have a working AWS Account with valid permissions, if you do not, this can be done using this link: https://aws.amazon.com/resources/create-account/
- You must configure the AWS CLI: https://www.youtube.com/watch?v=dZgLNL869YU
- You must have a working Dynatrace tenant, managed or SAAS: https://www.dynatrace.com/signup/
- Clone this repo to your local PC:
$ git clone https://github.com/kwehen/easyTravel - Place your DT tenant URL, PAAS Token, and OneAgent installation commands inside of the easytravel-install.sh script (Lines 13, 14, 164-166)
- Create a PRIVATE GitHub repository and upload your configured easytravel-install.sh script (Make sure the file is named "easytravel-install.sh")
- Create a Classic Personal Access Token: Click on your profile picture > Settings > Developer Settings > Personal access tokens > Tokens (classic) > Generate new token > Generate new token (classic) > repo > Generate token
- Copy the personal access token
- Paste personal access token in the line 1 of userdata.tpl
- In your private GitHub repository, navigate to the RAW file of easytravel-install.sh in your browser.
- Copy the link to the RAW file. It should look similar to https://raw.githubusercontent.com/USERNAME/REPOSITORY/main/easytravel-install.sh
- Paste link into userdata.tpl on your local machine without the "?token=RANDOMTOKENGENRATEDBYPRIVATEREPO". The command should look like:
wget --header 'Authorization: token ghp_TFGHHE78JHHRE2W5Z6L90YUI' https://raw.githubusercontent.com/USER/REPO/main/easytravel-install.sh - Create key pair or use existing key pair in .ssh file (preferebly named 'tft-key'): https://www.purdue.edu/science/scienceit/ssh-keys-windows.html
- Update line 76 of main.tf with the path to the key pair your created
$ terraform init$ terraform apply- On your local machine:
cd /,cd .ssh - Once the instance is created and full provisoned. SSH into it with the private key created by Terraform
ssh -i "tft-key" ubuntu@ec2-1-2-3-4.compute-1.amazonaws.com - Run the
topcommand to ensure the OneAgent is running
- Verify that the commands pasted in the lines 164-166 are free of spacing issues
- Verify
wget -Oin your commands does not have extra whitespace - Check syslog on the instance and verify you are not getting any errors