Skip to content

Commit 08b4a6a

Browse files
authored
update the CI config to use auth token
1 parent fdfcbfd commit 08b4a6a

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,14 @@ jobs:
3737
python-version: "3.10"
3838

3939
- name: Start LocalStack
40+
uses: LocalStack/setup-localstack@main
41+
with:
42+
image-tag: 'latest'
43+
install-awslocal: 'true'
44+
use-pro: 'true'
45+
configuration: LS_LOG=trace
4046
env:
41-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
42-
run: |
43-
pip install localstack awscli-local[ver1]
44-
pip install terraform-local
45-
docker pull localstack/localstack-pro
46-
47-
# Start LocalStack in the background
48-
localstack start -d
49-
50-
# Wait 30 seconds for the LocalStack container to become ready before timing out
51-
echo "Waiting for LocalStack startup..."
52-
localstack wait -t 15
53-
54-
echo "Startup complete"
47+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
5548

5649
- name: Run Terraform tests
5750
run: |

0 commit comments

Comments
 (0)