Skip to content

Commit 8bc292b

Browse files
committed
Added environment variable
1 parent 1b4cb9e commit 8bc292b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

cloudformation/lambda-base.yaml

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package za.co.prescient;
2+
3+
public class Constants {
4+
5+
public static final String PARAM_ENDPOINT = "endpoint";
6+
}

src/main/java/za/co/prescient/Utils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public static void process(SNSEvent.SNSRecord record) {
1717

1818
public static void process(SQSEvent.SQSMessage sqsMessage) {
1919
System.out.println("Processing: " + sqsMessage.getBody());
20+
System.out.println("Endpoint = " + System.getenv(Constants.PARAM_ENDPOINT));
2021
}
2122

2223
public static void process(S3EventNotification s3EventNotification) {

0 commit comments

Comments
 (0)