Translate lab documentation to English
Some checks failed
Repo Quality / structure (push) Has been cancelled
Terraform Validate / validate (push) Has been cancelled

This commit is contained in:
Rodrigo Pace
2026-05-08 14:50:52 -03:00
parent cde150b705
commit 52bf971b8b
33 changed files with 939 additions and 702 deletions

View File

@@ -1,19 +1,37 @@
# Execução Dos Labs
# Lab Execution
## 1. Preparar Ambiente
## 1. Prepare The Environment
Windows:
```powershell
powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap.ps1
```
## 2. Configurar Terraform
Linux/macOS:
```powershell
Copy-Item terraform/envs/demo/terraform.tfvars.example terraform/envs/demo/terraform.tfvars
notepad terraform/envs/demo/terraform.tfvars
```bash
chmod +x scripts/*.sh
./scripts/bootstrap.sh
```
Preencha:
## 2. Configure Terraform
Windows:
```powershell
Copy-Item terraform\envs\demo\terraform.tfvars.example terraform\envs\demo\terraform.tfvars
notepad terraform\envs\demo\terraform.tfvars
```
Linux/macOS:
```bash
cp terraform/envs/demo/terraform.tfvars.example terraform/envs/demo/terraform.tfvars
vi terraform/envs/demo/terraform.tfvars
```
Fill in:
- `tenancy_ocid`
- `compartment_ocid`
@@ -23,37 +41,61 @@ Preencha:
- `region`
- `adb_admin_password`
## 3. Validar Terraform
## 3. Validate Terraform
Windows:
```powershell
powershell -ExecutionPolicy Bypass -File .\scripts\validate-terraform.ps1
```
## 4. Aplicar Infraestrutura
Linux/macOS:
```powershell
Set-Location terraform/envs/demo
```bash
./scripts/validate-terraform.sh
```
## 4. Apply Infrastructure
```bash
cd terraform/envs/demo
terraform init
terraform plan -out tfplan
terraform apply tfplan
```
## 5. Executar Cenário
## 5. Run A Scenario
Windows:
```powershell
Set-Location ../..
powershell -ExecutionPolicy Bypass -File .\scripts\run-scenario.ps1 -Scenario 01-ai-prompt-injection -ConnectString "<connect_string>"
```
## 6. Resetar Cenário
Linux/macOS:
```bash
./scripts/run-scenario.sh 01-ai-prompt-injection "<connect_string>"
```
## 6. Reset A Scenario
Windows:
```powershell
powershell -ExecutionPolicy Bypass -File .\scripts\reset-scenario.ps1 -Scenario 01-ai-prompt-injection -ConnectString "<connect_string>"
```
## 7. Destruir Ambiente
Linux/macOS:
```powershell
Set-Location terraform/envs/demo
```bash
./scripts/reset-scenario.sh 01-ai-prompt-injection "<connect_string>"
```
## 7. Destroy The Environment
```bash
cd terraform/envs/demo
terraform destroy
```