Test: Pipeline proyectosacc para laboratorio local

This commit is contained in:
Test
2026-06-03 03:55:02 +00:00
parent 68ab139d77
commit 61549be0f1
4 changed files with 254 additions and 43 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
set -euo pipefail
ENV="${1:-dev}"
echo "=== AWS Local Setup (Floci) ==="
echo "Ambiente : $ENV"
echo "Region : us-east-1"
echo "Endpoint : http://floci:4566"
echo ""
# Credenciales para Floci (AWS emulator)
export AWS_ACCESS_KEY_ID="000000000000"
export AWS_SECRET_ACCESS_KEY="test"
export AWS_DEFAULT_REGION="us-east-1"
export AWS_ENDPOINT_URL="http://floci:4566"
echo "✓ Credenciales locales configuradas"
echo " AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}"
echo " Endpoint: ${AWS_ENDPOINT_URL}"
echo ""
# Verificar conexión a Floci
if aws --endpoint-url=${AWS_ENDPOINT_URL} s3 ls > /dev/null 2>&1; then
echo "✓ Conexión a Floci (S3) exitosa"
else
echo "⚠ No se pudo conectar a Floci S3"
fi
echo ""
echo "=== Setup completado ==="