Skip to content

Commit c0abcfb

Browse files
authored
switch localstack version for terraform ci (#9)
* switch localstack version for terraform ci * add image name to localstack startup
1 parent 65f0f26 commit c0abcfb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ jobs:
4141
- name: Start LocalStack
4242
env:
4343
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
44-
DNS_ADDRESS: 0
4544
run: |
46-
pip install localstack awscli-local[ver1]
45+
pip install localstack==3.2.0 awscli-local[ver1]
4746
pip install terraform-local
48-
docker pull localstack/localstack-pro:latest
47+
docker pull localstack/localstack-pro:3.2.0
4948
5049
# Start LocalStack in the background
51-
localstack start -d
50+
IMAGE_NAME=localstack/localstack-pro:3.2.0 localstack start -d
5251
5352
# Wait 30 seconds for the LocalStack container to become ready before timing out
5453
echo "Waiting for LocalStack startup..."

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ tflocal apply --auto-approve
7070

7171
We are using the `tflocal` wrapper to configure the local service endpoints, and send the API requests to LocalStack, instead of AWS. You can use the same Terraform configuration to deploy the infrastructure on AWS as well.
7272

73+
> Currently, the Terraform configuration is tested & validated against `localstack/localstack:3.2.0` image. You can use the `IMAGE_NAME` environment variable to specify the LocalStack image version to ensure that the Terraform configuration works as expected.
74+
7375
#### CloudFormation
7476

7577
To create the infrastructure using CloudFormation, run the following commands:

0 commit comments

Comments
 (0)