Handler: io.micronaut.function.aws.proxy.MicronautLambdaHandler
Workflow file: .github/workflows/aws-lambda-cli-graalvm.yml
For pushes to the master
branch, the workflow will:
- Setup the build environment with respect to the selected java/graalvm version.
- Login to Docker registry.
- Login to Azure Command-Line Interface.
- Build, tag and push Docker image with Micronaut application to the Docker Registry.
- Deploy to Azure Container Instances.
- Login to Docker Registry
docker/login
- Setup GraalVM
DeLaGuardo/setup-graalvm
- Setup Azure CLI
azure/login
Add the following GitHub secrets:
Name | Description |
---|---|
AWS_ACCESS_KEY_ID | AWS Access Key Id. |
AWS_SECRET_ACCESS_KEY | AWS Secret Access Key. |
AWS_ROLE_ARN | AWS Role ARN under which the Lambda function runs. |
The workflow file also contains additional configuration options that are now configured to:
Name | Description | Default value |
---|---|---|
AZURE_LOCATION | Location where the Container Instance will be created. See Resource availability for Azure Container Instances in Azure regions to find out what regions are supported. | westeurope |
AZURE_DNS_LABEL | The dns name label for container group with public IP. | aws-lambda-cli-maven-graalvm-test |
Call the rest api endpoint [AZURE_DNS_LABEL].[AZURE_LOCATION].azurecontainer.io:[PORT]/awsLambdaCliMavenGraalvmTest
:
curl http://aws-lambda-cli-maven-graalvm-test.westeurope.westeurope.azurecontainer.io:8080/awsLambdaCliMavenGraalvmTest