This PR moves services into their own constructs, and splits apart the ControlPlaneApi construct that was getting huge.
Description of changes
The API construct is now just the HTTP API. Each service gets passed the API and the authorizer, and add their own routes to the API.
Each service is also encapsulated (where appropriate) along with its datastore. TenantManagementService, for instance, now includes and creates a TenantManagementTable construct.
Ensured that current tests run and mitigated all CDK Nags.
Reason for this change
This PR moves services into their own constructs, and splits apart the
ControlPlaneApi
construct that was getting huge.Description of changes
The API construct is now just the HTTP API. Each service gets passed the API and the authorizer, and add their own routes to the API.
Each service is also encapsulated (where appropriate) along with its datastore.
TenantManagementService
, for instance, now includes and creates aTenantManagementTable
construct.Ensured that current tests run and mitigated all CDK Nags.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.