Skip to content

TrouveTaVoie/serverless-struct-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Serverless Structure Validation

This composite action will verify the structure of your repositrory if it's compatible with the structure of ttv-apis.

General structure

├── src
│   ├── services               # Lambda configuration and source code folder
│   │   ├── <service-name>-service
│   │      ├── handler.ts      # `service` lambda source code
│   │      ├── serverless.yml        # `Hello` lambda Serverless
│   │      ├── README.md      # the readme that explain your app
│   └── resources     # ressources used by multiple services
│       └── <service-name>-resources.yml    # aws resources of each service

Mandatory structure

You should have a main folder src that will have a subfolder named services in this folder you will add your specific service with the following syntaxe *-service this folder will contain all the necessary files of your app for example: handlers, serverless.yml, etc.

.
├── src
│   ├── services               # Lambda configuration and source code folder
│   │   ├── <service-name>-service
│   │      ├── handler.ts      # `service` lambda source code
│   │      ├── serverless.yml        # `Hello` lambda Serverless

Optional strucuture

If your service have a resources that should be deployed in the cloud provider you can add it into (src/resources) create a yaml file there specify the name as mentioned before <service-name>-resources.yml and don't forget to put the path in your serverless.yml to deploy structure

├── src
│   ├── services               # Lambda configuration and source code folder
│   └── resources     # ressources used by multiple services
│       └── <service-name>-resources.yml    # aws resources of each service

Example usage

- name: Validate structure
  uses: TrouveTaVoie/serverless-struct-validation@main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •