AWS Serverless REST API using Java and Terraform.
- AWS CLI
- Terraform
- Maven
cd lambda-functions
mvn clean package
cd ../terraform
terraform init
terraform apply
terraform destroy
mvn archetype:generate \
-DgroupId=com.example \
-DartifactId=lambda-functions \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=false
curl --location --request POST 'https://xxxxxx.execute-api.us-east-1.amazonaws.com/prod/calc' \
--header 'Content-Type: text/plain' \
--data-raw 'Amit'
curl --location --request POST 'https://xxxxxx.execute-api.us-east-1.amazonaws.com/prod/calc' \
--header 'Content-Type: application/json' \
--data-raw '{
"a": 1,
"b": 2,
"oper": "add"
}'
mvn versions:display-dependency-updates
mvn versions:display-plugin-updates
mvn versions:use-latest-versions
mvn versions:update-parent
mvn versions:update-properties