Skip to content

New: [AEA-6254] - RestApiGateway construct#547

Merged
tstephen-nhs merged 19 commits intomainfrom
aea-6254-cdk-api-gateway
Mar 27, 2026
Merged

New: [AEA-6254] - RestApiGateway construct#547
tstephen-nhs merged 19 commits intomainfrom
aea-6254-cdk-api-gateway

Conversation

@tstephen-nhs
Copy link
Copy Markdown
Contributor

Summary

  • 🤖 Operational or Infrastructure Change

Details

Add a new CDK construct for API Gateway

@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-6254

@tstephen-nhs tstephen-nhs force-pushed the aea-6254-cdk-api-gateway branch from 4f14152 to 02b0af2 Compare March 18, 2026 16:50
@tstephen-nhs tstephen-nhs marked this pull request as ready for review March 24, 2026 12:00
Copilot AI review requested due to automatic review settings March 24, 2026 12:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new AWS CDK construct (RestApiGateway) to standardize provisioning of an API Gateway REST API (custom domain, logging/subscriptions, optional mTLS), plus a small helper construct for wiring Lambda-backed resources.

Changes:

  • Introduces RestApiGateway construct with access logging, Splunk/optional CSOC log forwarding, custom domain + Route53 record, and optional mTLS truststore deployment.
  • Adds LambdaEndpoint construct and shared access log format helper.
  • Adds Vitest-based CDK assertions tests for the new constructs and minor repo/tooling config updates.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sonar-project.properties Adds Sonar exclusions for specific vitest config files
packages/cdkConstructs/tests/constructs/RestApiGateway/LambdaEndpoint.test.ts New tests for LambdaEndpoint construct
packages/cdkConstructs/tests/constructs/RestApiGateway.test.ts New tests for RestApiGateway behavior (mTLS / CSOC logs)
packages/cdkConstructs/src/index.ts Exports the new constructs/helpers from the package entrypoint
packages/cdkConstructs/src/constructs/RestApiGateway/accessLogFormat.ts Defines a custom API Gateway access log JSON format
packages/cdkConstructs/src/constructs/RestApiGateway/LambdaEndpoint.ts Adds helper construct to attach Lambda integrations to API resources
packages/cdkConstructs/src/constructs/RestApiGateway.ts Implements the new RestApiGateway construct
.trivyignore.yaml Adds a new CVE ignore entry (time-bounded)
.gitignore Ignores *.tgz artifacts
.devcontainer/Dockerfile Installs git-secrets in the devcontainer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tstephen-nhs tstephen-nhs force-pushed the aea-6254-cdk-api-gateway branch from 67db67f to 70e7f20 Compare March 27, 2026 12:26
@sonarqubecloud
Copy link
Copy Markdown

@tstephen-nhs tstephen-nhs merged commit 2a856a6 into main Mar 27, 2026
16 checks passed
@tstephen-nhs tstephen-nhs deleted the aea-6254-cdk-api-gateway branch March 27, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants