Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Install tools
run: |
pip install --pre localstack awscli-local[ver1] terraform-local pytest requests
pip install --pre localstack awscli-local terraform-local pytest requests

# Terraform
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
Expand Down
18 changes: 1 addition & 17 deletions 00-setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@ else
echo "Using existing LOCALSTACK_AUTH_TOKEN."
fi

echo ""
echo "Configuring AWS CLI default profile for LocalStack..."
mkdir -p "${HOME}/.aws"
cat > "${HOME}/.aws/credentials" << 'EOF'
[default]
aws_access_key_id = test
aws_secret_access_key = test
EOF
cat > "${HOME}/.aws/config" << 'EOF'
[default]
region = us-east-1
endpoint_url = http://localhost:4566
output = json
EOF
echo "AWS CLI profile configured."

echo ""
echo "Starting LocalStack..."
localstack start -d
Expand All @@ -42,7 +26,7 @@ localstack wait -t 60

echo ""
echo "Verifying..."
aws s3 ls > /dev/null && echo "OK: aws CLI connected (via default profile)"
awslocal s3 ls > /dev/null && echo "OK: awslocal connected"
curl -sf http://localhost:4566/_localstack/health | python3 -m json.tool | grep -q '"running"' && echo "OK: health check passed"

echo ""
Expand Down
Loading