This service is responsible for managing events.
Check core/models/event.model.ts for the Event model.
Returns a list of events.
Returns a single event.
Creates a new event.
This service is deployed using the Serverless Framework.
The following SSM parameters are passed to environment variables in the serverless.yml file:
/event-service/${opt:stage, self:provider.stage}/api-key
The following environment variables are used in the serverless.yml file:
EVENTS_TABLE: ${opt:stage, self:provider.stage}-events # DynamoDB table name
API_KEY: ${ssm:/event-service/${opt:stage, self:provider.stage}/api-key} # API key for the service
To deploy the service, run one of the following commands:
yarn deploy
npm run deploy
npx serverless deploy