File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,30 +28,27 @@ jobs:
2828 - name : Setup Terraform
2929 uses : hashicorp/setup-terraform@v3
3030 with :
31- terraform_version : " 1.9.8 "
31+ terraform_version : " 1.11.0 "
3232
33- - name : Set up Python 3.10
34- id : setup-python
35- uses : actions/setup-python@v2
33+ - name : Install Python
34+ uses : actions/setup-python@v4
3635 with :
37- python-version : " 3.10"
36+ python-version : ' 3.10'
3837
39- - name : Start LocalStack
40- env :
41- LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
38+ - name : Install tflocal
4239 run : |
43- pip install localstack awscli-local[ver1]
4440 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
41+ tflocal --version
5342
54- echo "Startup complete"
43+ - name : Start LocalStack
44+ uses : LocalStack/setup-localstack@main
45+ with :
46+ image-tag : ' latest'
47+ install-awslocal : ' true'
48+ use-pro : ' true'
49+ configuration : LS_LOG=trace
50+ env :
51+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
5552
5653 - name : Run Terraform tests
5754 run : |
You can’t perform that action at this time.
0 commit comments