Skip to content

Commit

Permalink
correct install aws and chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne-Flore committed Nov 4, 2022
1 parent 970f944 commit 628da09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vscode-box/userdata.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ runcmd:
- wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
- echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
- sudo apt update && sudo apt install terraform
- alias tf="terraform"
- alias tf=terraform

# Install AWS CLI
# https://docs.aws.amazon.com/fr_fr/cli/latest/userguide/getting-started-install.html
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- sudo apt install unzip
- unzip awscliv2.zip
- sudo ./aws/install

# Clone the exercise repository
- git clone https://github.com/padok-team/dojo-terraform-aws-security.git /home/cs/dojo-terraform-aws-security
- sudo chown -R cs:cs dojo-terraform-aws-security/
- sudo chmod +r dojo-terraform-aws-security/
- sudo chown -R cs:cs /home/cs/dojo-terraform-aws-security/
- sudo chmod +r /home/cs/dojo-terraform-aws-security/

- curl "https://echo.dixneuf19.me/${github_username}" # telemetry

0 comments on commit 628da09

Please sign in to comment.