-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into UML-3750-unable-to-request-activation
- Loading branch information
Showing
54 changed files
with
247 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,8 @@ jobs: | |
run_unit_tests: 'true' | ||
run_integration_tests: 'false' | ||
artifact_to_dl: '' | ||
- svc_prefix: 'ingestion' | ||
svc_suffix: 'lambda' | ||
- svc_prefix: 'event' | ||
svc_suffix: 'receiver' | ||
build_development_docker: 'false' | ||
run_unit_tests: 'false' | ||
run_integration_tests: 'false' | ||
|
@@ -119,7 +119,7 @@ jobs: | |
- name: ecr login | ||
id: login_ecr | ||
uses: aws-actions/amazon-ecr-login@37b726ebcaba9d1c1838caf54540902bad814823 # [email protected] | ||
uses: aws-actions/amazon-ecr-login@b06ccd195086ba5254c95c627ee1cbeab86c7432 # [email protected] | ||
with: | ||
registries: 311462405659 | ||
if: | | ||
|
@@ -264,9 +264,10 @@ jobs: | |
elif [[ "${SVC_PREFIX}" = "stats_upload" ]]; then | ||
docker build --no-cache --file lambda-functions/upload-statistics/Dockerfile --tag stats_upload_lambda:latest lambda-functions/upload-statistics | ||
elif [[ "${SVC_PREFIX}" = "ingestion" ]]; then | ||
docker build --file lambda-functions/ingestion-lambda/Dockerfile --tag ingestion_lambda:latest lambda-functions/ingestion-lambda | ||
elif [[ "${SVC_PREFIX}" = "event" ]]; then | ||
if [[ "${SVC_SUFFIX}" = "receiver" ]]; then | ||
docker build --file lambda-functions/${SVC_PREFIX}-${SVC_SUFFIX}/Dockerfile --tag ${SVC_PREFIX}_${SVC_SUFFIX}:latest lambda-functions/${SVC_PREFIX}-${SVC_SUFFIX} | ||
fi | ||
fi | ||
if: (inputs.specific_path == 'all' || inputs.specific_path == matrix.svc_prefix) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM golang:1.23.1-alpine AS base | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY app/ ./ | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/main ./ | ||
|
||
FROM scratch AS production | ||
|
||
WORKDIR /var/task | ||
|
||
COPY --from=base /go/bin/main ./main | ||
|
||
ENTRYPOINT ["./main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Event Receiver | ||
|
||
This Lambda function will process events from the new Event Receiver EventBus which processes events from MLPAB. | ||
|
||
### Testing the lambda image locally | ||
|
||
As the lambda is built from an image, this can be spun up to test in dev environment. | ||
|
||
Bring up the lambda locally | ||
|
||
``` | ||
make build | ||
``` | ||
|
||
# To test lambda | ||
The curl follows a set command to invoke lambda functions as below | ||
|
||
``` | ||
curl -XPOST "http://localhost:9008/2015-03-31/functions/function/invocations" -d '{}' | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.