localstack / localstack/setup-localstack

0.3.2 `localstack` command not found

Open
#69 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
40
Forks
13
PR merge metrics
No merged PRs in 30d

Description

From GHA logs:

```
Run if [ "$USE_PRO" = true ]; then
if [ "$USE_PRO" = true ]; then
if [ "x$LOCALSTACK_API_KEY" != "x" ]; then
echo "WARNING: LOCALSTACK_API_KEY is deprecated, please use LOCALSTACK_AUTH_TOKEN instead."
fi
if [ "x$LOCALSTACK_AUTH_TOKEN" = "x" -a "x$LOCALSTACK_API_KEY" = "x" ]; then
echo "WARNING: LocalStack Auth Token not detected, please verify your configuration..."
fi
CONFIGURATION="DNS_ADDRESS=127.0.0.1 ${CONFIGURATION}"
IMAGE_NAME="${IMAGE_NAME:-localstack/localstack-pro:${IMAGE_TAG}}"
else
IMAGE_NAME="${IMAGE_NAME:-localstack/localstack:${IMAGE_TAG}}"
fi

CONFIGURATION="IMAGE_NAME=${IMAGE_NAME} ${CONFIGURATION}"
docker pull ${IMAGE_NAME} &
export CI_PROJECT=
eval "${CONFIGURATION} localstack start -d"

if [ "$SKIP_WAIT" = false ]; then
localstack wait -t ${LS_WAIT_TIMEOUT:-30} # Let users configure the timeout via env variable
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
GITHUB_REPO_NAME: TrueRowing/hydrow-identity
NPM_CONFIG_USERCONFIG: /home/runner/_work/_temp/.npmrc
NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
GH_ACTION_ROOT: ./../../_actions/LocalStack/setup-localstack/v0.3.2
LOCALSTACK_AUTH_TOKEN: ***
SERVICES: cognito-idp,kms
IMAGE_TAG: latest
INSTALL_AWSLOCAL: true
USE_PRO: true
CONFIGURATION:
SKIP_WAIT: false
/home/runner/_work/_temp/c586c0b3-9067-483a-b653-4b8a7d5a08b0.sh: line 17: localstack: command not found
```

The relevant action step:
```
- name: configure localstack
uses: LocalStack/setup-localstack@v0.3.2
with:
image-tag: 'latest'
install-awslocal: 'true'
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} # If using Pro
SERVICES: cognito-idp,kms # Example services to start
```

Fails everytime with a process exited with error code 127.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GitHub Actions workflow step using LocalStack/setup-localstack@v0.3.2 and compare it with the logged shell commands and environment. Reproduce the workflow, trace why the localstack executable is unavailable, and verify that the command is present and the setup completes without exit code 127.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.