Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easyTravel

Get easyTravel up and running with the OneAgent on AWS in minutes with this repo!

Screenshot 2023-08-20 at 12 03 31 PM Screenshot 2023-08-20 at 12 02 43 PM

Pre-requisites

Instructions

  1. Clone this repo to your local PC: $ git clone https://github.com/kwehen/easyTravel
  2. Place your DT tenant URL, PAAS Token, and OneAgent installation commands inside of the easytravel-install.sh script (Lines 13, 14, 164-166)
  3. Create a PRIVATE GitHub repository and upload your configured easytravel-install.sh script (Make sure the file is named "easytravel-install.sh")
  4. 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
  5. Copy the personal access token
  6. Paste personal access token in the line 1 of userdata.tpl
  7. In your private GitHub repository, navigate to the RAW file of easytravel-install.sh in your browser.
  8. Copy the link to the RAW file. It should look similar to https://raw.githubusercontent.com/USERNAME/REPOSITORY/main/easytravel-install.sh
  9. 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
  10. 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
  11. Update line 76 of main.tf with the path to the key pair your created
  12. $ terraform init
  13. $ terraform apply
  14. On your local machine: cd /, cd .ssh
  15. 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
  16. Run the top command to ensure the OneAgent is running

Troubleshooting

  • Verify that the commands pasted in the lines 164-166 are free of spacing issues
  • Verify wget -O in your commands does not have extra whitespace
  • Check syslog on the instance and verify you are not getting any errors
Screenshot 2023-08-20 at 1 51 33 PM

About

Get easyTravel up and running with the oneAgent on AWS in minutes with this repo!

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages