fix(oidc): install AWS CLI v2 inside aws-oidc-setup.sh if missing

This commit is contained in:
Evert Daniel Romero Garrido
2026-04-16 11:42:54 -06:00
parent ec40b94795
commit 18b436e582
+9 -1
View File
@@ -11,12 +11,20 @@
# #
# Requiere: # Requiere:
# - El step de bitbucket-pipelines.yml debe tener "oidc: true" # - El step de bitbucket-pipelines.yml debe tener "oidc: true"
# - AWS CLI v2 instalado
# - python3 disponible para parsear JSON # - python3 disponible para parsear JSON
# =============================================================================================================== # ===============================================================================================================
set -euo pipefail set -euo pipefail
if ! command -v aws &> /dev/null; then
echo "AWS CLI no encontrado. Instalando AWS CLI v2..."
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
./aws/install --update
rm -rf awscliv2.zip aws
aws --version
fi
ENV="${1:-dev}" ENV="${1:-dev}"
if [[ -z "${BITBUCKET_STEP_OIDC_TOKEN:-}" ]]; then if [[ -z "${BITBUCKET_STEP_OIDC_TOKEN:-}" ]]; then