Skip to content

Commit 5e5f31c

Browse files
authored
[chore]: update examples to use zip deployment (#310)
* update examples to use zip deployment * rename function to avoid conflict
1 parent 86a7a46 commit 5e5f31c

8 files changed

Lines changed: 122 additions & 505 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,18 @@ jobs:
5757
role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
5858
role-session-name: java-language-sdk-test
5959
aws-region: ${{ env.AWS_REGION }}
60+
- name: Build locally
61+
run: mvn -B -q -Dmaven.test.skip=true install --file pom.xml
6062
- name: sam build
6163
run: | # add --no-cached if debugging sam build
6264
sam build --parameter-overrides \
63-
'ParameterKey=Architecture,ParameterValue=x86_64 ParameterKey=DockerFile,ParameterValue=examples/Dockerfile-java${{ matrix.java }} ParameterKey=FunctionNameSuffix,ParameterValue=-java${{ matrix.java }}'
65+
'ParameterKey=Architecture,ParameterValue=x86_64 ParameterKey=JavaVersion,ParameterValue=java${{ matrix.java }}'
6466
working-directory: ./examples
6567
- name: sam deploy
6668
run: |
67-
sam deploy --stack-name Java${{ matrix.java }}SDKCloudBasedIntegrationTestStack \
69+
sam deploy --stack-name JavaSDKCloudBasedIntegrationTestStack-Java${{ matrix.java }}Runtime \
6870
--resolve-image-repos --resolve-s3 --capabilities CAPABILITY_IAM --parameter-overrides \
69-
'ParameterKey=Architecture,ParameterValue=x86_64 ParameterKey=DockerFile,ParameterValue=examples/Dockerfile-java${{ matrix.java }} ParameterKey=FunctionNameSuffix,ParameterValue=-java${{ matrix.java }}'
71+
'ParameterKey=Architecture,ParameterValue=x86_64 ParameterKey=JavaVersion,ParameterValue=java${{ matrix.java }}'
7072
working-directory: ./examples
7173
- name: Setup Java ${{ matrix.java }}
7274
uses: actions/setup-java@v5
@@ -77,5 +79,5 @@ jobs:
7779
- name: Build locally
7880
run: mvn -B -q -Dmaven.test.skip=true install --file pom.xml
7981
- name: Cloud Based Integration Tests
80-
run: mvn clean test -B -Dtest.cloud.enabled=true -Dtest=CloudBasedIntegrationTest -Dtest.function.name.suffix='-java${{ matrix.java }}'
82+
run: mvn clean test -B -Dtest.cloud.enabled=true -Dtest=CloudBasedIntegrationTest -Dtest.function.name.suffix='-java${{ matrix.java }}-runtime'
8183
working-directory: ./examples

examples/Dockerfile

Lines changed: 0 additions & 29 deletions
This file was deleted.

examples/Dockerfile-java17

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/Dockerfile-java21

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/Dockerfile-java25

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Example applications demonstrating the AWS Lambda Durable Execution SDK for Java
77
- Java 17+
88
- Maven 3.8+
99
- AWS SAM CLI (for deployment)
10-
- Docker (for SAM build)
1110
- AWS credentials configured
1211

1312
## Local Testing

examples/src/test/java/software/amazon/lambda/durable/examples/CloudBasedIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void setup() {
6060

6161
account = System.getProperty("test.aws.account");
6262
region = System.getProperty("test.aws.region");
63-
functionNameSuffix = System.getProperty("test.function.name.suffix", "");
63+
functionNameSuffix = System.getProperty("test.function.name.suffix", "-java17-runtime");
6464

6565
if (account == null || region == null) {
6666
try (var sts = StsClient.create()) {

0 commit comments

Comments
 (0)