# Setting up Cloud 9 # Set up ## Create a User ### Policies - AWSCloud9User - AWSCloud9EnvironmentMember ## Create Cloud9 environment - t3.small ### increase disk space following this - https://catalog.us-east-1.prod.workshops.aws/workshops/9981f1a1-abdc-49b5-8387-cb01d238bb78/en-US/50-udf/501-cloud9-ide - `curl https://aws-data-analytics-workshops.s3.amazonaws.com/athena-workshop/scripts/cloud9\_resize.sh > cloud9\_resize.sh` - `sh cloud9\_resize.sh 30` - `df -h` (to check the size) ## Set up Haskell Environment 1. Clone the project: `git clone https://github.com/supernelis/haskel-advent-of-code-experiment.git` 2. Install Stack: `curl -sSL https://get.haskellstack.org/ | sh` 3. Install missing gmp library (if you have linker errors): `sudo yum install gmp-devel` ## Run tests 1. Run all tests: `stack test` 2. Run specific specs: `stack build Testing:test:day3-test` (spec targets can be found in test.cabal) ## Setting up Git 1. Set up git global settings 2. User: `git config --global user.name "Your Name"`\ 3. E-mail: `git config --global user.email "Your E-mail"` 4. Github Token: 1. Set up a personal token on Github: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 2. When pushing use your github user name and use the personal token for the password. # Use the Cloud9 environment 1. Select region frankfurt 2. Go to cloud9 aws service (search box) 3. In the hamburger menu at the left select shared with me