Skip to content

Commit 06a1d43

Browse files
fix: Add AWS_ENDPOINT_URL_S3 environment variable for LocalStack in CI jobs
1 parent c182bbc commit 06a1d43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/common-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
echo "AWS_REGION=eu-west-1"
9696
echo "AWS_DEFAULT_REGION=eu-west-1"
9797
echo "AWS_ENDPOINT_URL=http://localhost:4566"
98+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
9899
} >> "$GITHUB_ENV"
99100
- name: Bootstrap CDK for LocalStack
100101
if: ${{ inputs.useLocalStack }}
@@ -179,6 +180,7 @@ jobs:
179180
echo "AWS_REGION=eu-west-1"
180181
echo "AWS_DEFAULT_REGION=eu-west-1"
181182
echo "AWS_ENDPOINT_URL=http://localhost:4566"
183+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
182184
} >> "$GITHUB_ENV"
183185
- name: Bootstrap CDK for LocalStack
184186
if: ${{ inputs.useLocalStack }}
@@ -256,6 +258,7 @@ jobs:
256258
echo "AWS_REGION=eu-west-1"
257259
echo "AWS_DEFAULT_REGION=eu-west-1"
258260
echo "AWS_ENDPOINT_URL=http://localhost:4566"
261+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
259262
} >> "$GITHUB_ENV"
260263
- name: Destroy
261264
if: ${{ !inputs.useLocalStack }}
@@ -335,6 +338,7 @@ jobs:
335338
echo "AWS_REGION=eu-west-1"
336339
echo "AWS_DEFAULT_REGION=eu-west-1"
337340
echo "AWS_ENDPOINT_URL=http://localhost:4566"
341+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
338342
} >> "$GITHUB_ENV"
339343
- name: Destroy
340344
if: ${{ !inputs.useLocalStack }}
@@ -414,6 +418,7 @@ jobs:
414418
echo "AWS_REGION=eu-west-1"
415419
echo "AWS_DEFAULT_REGION=eu-west-1"
416420
echo "AWS_ENDPOINT_URL=http://localhost:4566"
421+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
417422
} >> "$GITHUB_ENV"
418423
- name: Destroy
419424
if: ${{ !inputs.useLocalStack }}
@@ -493,6 +498,7 @@ jobs:
493498
echo "AWS_REGION=eu-west-1"
494499
echo "AWS_DEFAULT_REGION=eu-west-1"
495500
echo "AWS_ENDPOINT_URL=http://localhost:4566"
501+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
496502
} >> "$GITHUB_ENV"
497503
- name: Destroy
498504
if: ${{ !inputs.useLocalStack }}
@@ -572,6 +578,7 @@ jobs:
572578
echo "AWS_REGION=eu-west-1"
573579
echo "AWS_DEFAULT_REGION=eu-west-1"
574580
echo "AWS_ENDPOINT_URL=http://localhost:4566"
581+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
575582
} >> "$GITHUB_ENV"
576583
- name: Destroy
577584
if: ${{ !inputs.useLocalStack }}
@@ -651,6 +658,7 @@ jobs:
651658
echo "AWS_REGION=eu-west-1"
652659
echo "AWS_DEFAULT_REGION=eu-west-1"
653660
echo "AWS_ENDPOINT_URL=http://localhost:4566"
661+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
654662
} >> "$GITHUB_ENV"
655663
- name: Destroy
656664
if: ${{ !inputs.useLocalStack }}
@@ -733,6 +741,7 @@ jobs:
733741
echo "AWS_REGION=eu-west-1"
734742
echo "AWS_DEFAULT_REGION=eu-west-1"
735743
echo "AWS_ENDPOINT_URL=http://localhost:4566"
744+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
736745
} >> "$GITHUB_ENV"
737746
- name: Destroy
738747
if: ${{ !inputs.useLocalStack }}
@@ -809,6 +818,7 @@ jobs:
809818
echo "AWS_REGION=eu-west-1"
810819
echo "AWS_DEFAULT_REGION=eu-west-1"
811820
echo "AWS_ENDPOINT_URL=http://localhost:4566"
821+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
812822
} >> "$GITHUB_ENV"
813823
- name: Destroy
814824
if: ${{ !inputs.useLocalStack }}
@@ -881,6 +891,7 @@ jobs:
881891
echo "AWS_REGION=eu-west-1"
882892
echo "AWS_DEFAULT_REGION=eu-west-1"
883893
echo "AWS_ENDPOINT_URL=http://localhost:4566"
894+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
884895
} >> "$GITHUB_ENV"
885896
- name: Setup Terraform
886897
uses: hashicorp/setup-terraform@v3
@@ -960,6 +971,7 @@ jobs:
960971
echo "AWS_REGION=eu-west-1"
961972
echo "AWS_DEFAULT_REGION=eu-west-1"
962973
echo "AWS_ENDPOINT_URL=http://localhost:4566"
974+
echo "AWS_ENDPOINT_URL_S3=http://localhost:4566"
963975
} >> "$GITHUB_ENV"
964976
- name: Setup OpenTofu
965977
uses: opentofu/setup-opentofu@v1

0 commit comments

Comments
 (0)