fix(oidc): install AWS CLI v2 inside aws-oidc-setup.sh if missing
This commit is contained in:
@@ -11,12 +11,20 @@
|
||||
#
|
||||
# Requiere:
|
||||
# - El step de bitbucket-pipelines.yml debe tener "oidc: true"
|
||||
# - AWS CLI v2 instalado
|
||||
# - python3 disponible para parsear JSON
|
||||
# ===============================================================================================================
|
||||
|
||||
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}"
|
||||
|
||||
if [[ -z "${BITBUCKET_STEP_OIDC_TOKEN:-}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user