Skip to content

New: [AEA-6256] - update to API gateway and StateMachine constructs#648

Merged
tstephen-nhs merged 14 commits intomainfrom
aea-6256-updates
Apr 1, 2026
Merged

New: [AEA-6256] - update to API gateway and StateMachine constructs#648
tstephen-nhs merged 14 commits intomainfrom
aea-6256-updates

Conversation

@tstephen-nhs
Copy link
Copy Markdown
Contributor

@tstephen-nhs tstephen-nhs commented Mar 30, 2026

Summary

  • ✨ New Feature

Details

  • feat: permit ApiGateway to skip domain record
  • fix: merge suppressions instead of re-writing
  • fix: support IP6 AAAA record

@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-6256

@tstephen-nhs tstephen-nhs changed the title Fix: [AEA-6256] - update to API gateway and StateMachine constructs New: [AEA-6256] - update to API gateway and StateMachine constructs Mar 30, 2026
@tstephen-nhs tstephen-nhs marked this pull request as ready for review March 30, 2026 13:08
Copilot AI review requested due to automatic review settings March 30, 2026 13:08
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

This PR updates the cdkConstructs package to make the REST API Gateway construct more configurable around custom domain provisioning, improves how cfn-guard suppressions are applied, and extends DNS support to IPv6.

Changes:

  • Add enableServiceDomain to RestApiGateway to optionally skip creating custom domain/certificate/Route53 records (default remains enabled).
  • Refactor cfn-guard suppressions to use a shared helper/constant (merging rather than overwriting metadata).
  • Add an IPv6 (AAAA) Route53 record alongside the existing A record for the API Gateway alias.

Reviewed changes

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

Show a summary per file
File Description
packages/cdkConstructs/tests/constructs/RestApiGateway.test.ts Updates existing tests for the new prop and adds a default-behaviour test around domain resource creation.
packages/cdkConstructs/src/constructs/lambdaSharedResources.ts Switches log-group cfn-guard suppression to use a shared rule constant.
packages/cdkConstructs/src/constructs/StateMachine.ts Switches log-group cfn-guard suppression to the shared helper/constant (merging metadata).
packages/cdkConstructs/src/constructs/RestApiGateway/StateMachineEndpoint.ts Adds an additional declared method response status code (408).
packages/cdkConstructs/src/constructs/RestApiGateway.ts Introduces enableServiceDomain, adds AAAA record support, and uses suppression helper for stage metadata.
packages/cdkConstructs/src/constants.ts Adds CFN_GUARD_RULES for shared cfn-guard rule identifiers.

@tstephen-nhs tstephen-nhs enabled auto-merge (squash) March 30, 2026 14:44
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

@tstephen-nhs tstephen-nhs merged commit 930842c into main Apr 1, 2026
13 checks passed
@tstephen-nhs tstephen-nhs deleted the aea-6256-updates branch April 1, 2026 13:45
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