updating scripts

This commit is contained in:
EC2 Default User 2024-04-24 06:09:50 +00:00
parent 5dcb6ea56f
commit 5bce0dbda4
5 changed files with 30 additions and 4 deletions

12
labs/setup_c9.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
sudo yum update -y
wget https://releases.hashicorp.com/terraform/1.8.1/terraform_1.8.1_linux_amd64.zip -P ~/
unzip ~/terraform_1.8.1_linux_amd64.zip -d ~/.
sudo mv ~/terraform /usr/local/bin
pip install -r requirements.txt
echo "alias python='python3'
alias tf='terraform'
alias c='clear'" >> ~/.bashrc

View File

@ -1,4 +1,5 @@
account_number=920628590621 account_number=211125385450
student_initials="jk" student_initials="jk"
student_full_name="Jakub Kasprzak" student_full_name="Jakub Kasprzak"
student_index_no = "12345" student_index_no = "12345"
lab_role_arn = "arn:aws:iam::211125385450:role/LabRole"

View File

@ -28,4 +28,10 @@ variable "student_full_name" {
variable "student_index_no" { variable "student_index_no" {
description = "Index no" description = "Index no"
type = string type = string
} }
variable "lab_role_arn" {
description = "the role we use for all labs, dont use a single role for everything! it is an anti-pattern!!!!"
type = string
}

View File

@ -1,4 +1,5 @@
account_number=920628590621 account_number=211125385450
student_initials="jk" student_initials="jk"
student_full_name="Jakub Kasprzak" student_full_name="Jakub Kasprzak"
student_index_no = "12345" student_index_no = "12345"
lab_role_arn = "arn:aws:iam::211125385450:role/LabRole"

View File

@ -28,4 +28,10 @@ variable "student_full_name" {
variable "student_index_no" { variable "student_index_no" {
description = "Index no" description = "Index no"
type = string type = string
} }
variable "lab_role_arn" {
description = "the role we use for all labs, dont use a single role for everything! it is an anti-pattern!!!!"
type = string
}