Instructions for setting up the main SMWT-IHDEA machine.
The machine contains several repositories and miscellaneous files related to certain tasks:
- Overall ubuntu environment package-lock.json
- The spase-scripts repo
- The landing page repo, hpde.io
- The spase-generate-pages repo
- Cron file specifying automated jobs
- The NASA SPASE records repo
- The SMWG SPASE records repo
- The spase-base-model repo
- The spase-model-tools repo
- The website repo
- The spase-model-tools-node repo
- Clone all the above repositories.
- Download the crontab.job and package-lock.json files
- Install necessary Node packages from the package-lock.json file using the
npm cicommand.
Link the EC2 machine to the s3 bucket:
- Use the
aws sts get-caller-identitycommand within the machine to get the necessary info needed for the below steps. - On the AWS Dashboard:
- Create a new IAM role for EC2 access
- Grant the role ListBucket, Get, Put, Delete object permissions over the bucket (bucket policy)
- Assign the newly created role to the EC2 machine via "Modify IAM role"
Ensure that the backup and generation of the landing pages jobs are properly defined in the crontab file using the crontab -l command. If they do not match what is found in the crontab file from this repo, use crontab -e to add them (via vim).