This folder contains the Infrastructure as Code (IaC) configuration for the project's stateful resources, such as databases and authentication services (e.g., AWS Cognito).
The Infra Directory is organized into the following sub-folders:
provider
: Contains provider-specific settings and configurations.resources
: Contains resource definitions for stateful services, such as AWS Cognito User Pools and DynamoDB tables.serverless.ts
: The main serverless configuration file for stateful resources.
The Infra Directory is responsible for:
- Defining and managing the stateful infrastructure resources for the project.
- Configuring provider settings and options for stateful resources.
- Ensuring that the serverless configuration for stateful resources is up-to-date and accurate.
When working with the Infra Directory, follow these best practices:
- Keep resource definitions for stateful services organized and modular by placing them in separate files within the
resources
folder. - Use the serverless framework for managing stateful infrastructure resources and deployments.
- Follow best practices for Infrastructure as Code, such as keeping configurations version-controlled and documenting changes.
When adding new stateful infrastructure resources or updating existing ones, ensure that you:
- Follow the existing project structure and organization.
- Update this README.md file if needed.
- Test your changes thoroughly before deploying them to production.
- Adhere to the project's coding style and best practices.