aws-lambda-layer-cli 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-lambda-layer-cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "CLI tool for creating and publishing AWS Lambda layers for Node.js and Python.",
5
5
  "keywords": [
6
6
  "aws",
@@ -47,7 +47,7 @@ COMPLETION_DIR="/etc/bash_completion.d"
47
47
  # Show help
48
48
  show_help() {
49
49
  local version_file="$SCRIPT_DIR/VERSION.txt"
50
- local version="2.0.3"
50
+ local version="2.0.4"
51
51
  if [ -f "$version_file" ]; then
52
52
  version=$(cat "$version_file")
53
53
  fi
@@ -113,7 +113,7 @@ show_version() {
113
113
  echo "v$version"
114
114
  else
115
115
  # Fallback if VERSION file is missing (e.g. during development or if moved)
116
- echo "v2.0.3"
116
+ echo "v2.0.4"
117
117
  fi
118
118
  }
119
119
 
@@ -125,8 +125,26 @@ check_aws_cli() {
125
125
 
126
126
  if ! command -v aws &> /dev/null; then
127
127
  printf "${RED}Error: AWS CLI is not installed${NC}\n"
128
- printf "Please install AWS CLI first:\n"
129
- printf " https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\n"
128
+ printf "Please install AWS CLI:\n\n"
129
+
130
+ # Detect OS and provide specific install command
131
+ if [[ "$OSTYPE" == "darwin"* ]]; then
132
+ printf " ${GREEN}macOS:${NC}\n"
133
+ printf " brew install awscli\n"
134
+ printf " ${ITALIC}or${NC}\n"
135
+ printf " curl \"https://awscli.amazonaws.com/AWSCLIV2.pkg\" -o \"AWSCLIV2.pkg\"\n"
136
+ printf " sudo installer -pkg AWSCLIV2.pkg -target /\n\n"
137
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
138
+ printf " ${GREEN}Linux:${NC}\n"
139
+ printf " curl \"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\n"
140
+ printf " unzip awscliv2.zip\n"
141
+ printf " sudo ./aws/install\n\n"
142
+ elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
143
+ printf " ${GREEN}Windows:${NC}\n"
144
+ printf " Download and run: https://awscli.amazonaws.com/AWSCLIV2.msi\n\n"
145
+ fi
146
+
147
+ printf " ${CYAN}More info:${NC} https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\n"
130
148
  return 1
131
149
  fi
132
150
 
@@ -233,7 +251,7 @@ get_aws_account_info() {
233
251
  # Determine compatible runtimes for AWS
234
252
  get_compatible_runtimes() {
235
253
  local runtime="$1"
236
- local version="2.0.3"
254
+ local version="2.0.4"
237
255
 
238
256
  case "$runtime" in
239
257
  nodejs)
@@ -256,7 +274,25 @@ check_dependencies() {
256
274
  # Check for zip
257
275
  if ! command -v zip &> /dev/null; then
258
276
  printf "${RED}Error: 'zip' command is not installed${NC}\n"
259
- printf "Please install zip first.\n"
277
+ printf "Please install zip:\n\n"
278
+
279
+ # Detect OS and provide specific install command
280
+ if [[ "$OSTYPE" == "darwin"* ]]; then
281
+ printf " ${GREEN}macOS:${NC}\n"
282
+ printf " brew install zip\n\n"
283
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
284
+ printf " ${GREEN}Ubuntu/Debian:${NC}\n"
285
+ printf " sudo apt-get update && sudo apt-get install -y zip\n\n"
286
+ printf " ${GREEN}RHEL/CentOS/Fedora:${NC}\n"
287
+ printf " sudo yum install -y zip\n\n"
288
+ printf " ${GREEN}Alpine:${NC}\n"
289
+ printf " apk add --no-cache zip\n\n"
290
+ elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
291
+ printf " ${GREEN}Windows:${NC}\n"
292
+ printf " Use PowerShell: Install-Package -Name zip\n"
293
+ printf " ${ITALIC}or install Git Bash which includes zip${NC}\n\n"
294
+ fi
295
+
260
296
  return 1
261
297
  fi
262
298