Skip to content

jmservices/serverless-app

Repository files navigation

serverless-app

Birthday API serverless application

alt Infrastructure Diagram

Application files are located in files/app

Usage

For interraction with API use following methods:

GET https://<api-endpoint>/hello/{username}

POST https://<api-endpoint>/hello/{username} { "dateOfBirth": "YYYY-MM-DD" }

Requirements

Name Version
terraform >= 1.3.0
archive 2.2.0
aws ~> 4.0

Providers

Name Version
archive 2.2.0
aws 4.40.0

Modules

No modules.

Resources

Name Type
aws_api_gateway_deployment.this resource
aws_api_gateway_integration.get_integration resource
aws_api_gateway_integration.put_integration resource
aws_api_gateway_method.get resource
aws_api_gateway_method.put resource
aws_api_gateway_resource.api_resource resource
aws_api_gateway_rest_api.api resource
aws_api_gateway_stage.test resource
aws_cloudwatch_log_group.function_logs resource
aws_dynamodb_table.db resource
aws_iam_role.lambda resource
aws_iam_role_policy.lambda_policy resource
aws_lambda_function.this resource
aws_lambda_permission.allow_get_apigateway_trigger resource
archive_file.zip data source
aws_caller_identity.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
environment Project environment. string "test" no
project_category Project category. string "api" no
project_name Project name. string "Birthday" no

Outputs

Name Description
api Output REST API details.
db Output DynamoDB table details.
function Output Function details.
logs Output CloudWatch logs details.

Note: Install pre-commit for automated commit validation.

Pre-requisites:

  • pre-commit
  • tflint
  • terraform-docs

About

Birthday API (serverless application)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors