File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 93
93
94
94
systemctl enable --now docker || true
95
95
96
- # ---- Install AWS CLI v2 (bundle) if missing ----
97
- if ! command -v aws >/dev/null 2>&1; then
98
- ARCH="$(uname -m)"
99
- case "$ARCH" in
100
- x86_64) CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" ;;
101
- aarch64|arm64) CLI_URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" ;;
102
- *) echo "unsupported arch: $ARCH"; exit 1 ;;
103
- esac
104
- curl -fsSL "$CLI_URL" -o /tmp/awscliv2.zip
105
- unzip -q /tmp/awscliv2.zip -d /tmp
106
- /tmp/aws/install
107
- aws --version || { echo "aws cli install failed"; exit 1; }
108
- fi
109
-
110
96
# ---- ECR login, pull, run ----
111
97
ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
112
98
REGION='${AWS_REGION}'
You can’t perform that action at this time.
0 commit comments