Skip to content

Chore: [AEA-6258] - Remove exports that aren't necessary at the construct level#647

Merged
wildjames merged 3 commits intomainfrom
aea-6258-remove-outputs
Mar 30, 2026
Merged

Chore: [AEA-6258] - Remove exports that aren't necessary at the construct level#647
wildjames merged 3 commits intomainfrom
aea-6258-remove-outputs

Conversation

@wildjames
Copy link
Copy Markdown
Contributor

Summary

  • Routine Change

Details

The export of a parameter is not needed in all cases - it should be handled higher up the hierarchy, rather than doing it by default at the construct level every time.

Copilot AI review requested due to automatic review settings March 30, 2026 08:32
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

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

AEA-6258

@wildjames wildjames changed the title Remove exports that aren't necessary at the construct level Chore: [AEA-6258] - Remove exports that aren't necessary at the construct level Mar 30, 2026
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 removes automatic CloudFormation exports from SsmParametersConstruct, shifting responsibility for exports to higher-level stacks/constructs rather than doing it by default within the construct.

Changes:

  • Removed CfnOutput exports for individual parameter names and the managed policy ARN from SsmParametersConstruct.
  • Updated the construct tests to stop asserting exported outputs and instead assert created resources/default policy description.

Reviewed changes

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

File Description
packages/cdkConstructs/src/constructs/SsmParametersConstruct.ts Removes CfnOutput usage so the construct no longer creates CloudFormation Outputs/Exports.
packages/cdkConstructs/tests/constructs/ssmParametersConstruct.test.ts Removes tests asserting exports and updates a defaults test to assert resources/policy description instead.

@sonarqubecloud
Copy link
Copy Markdown

@wildjames wildjames merged commit d53c451 into main Mar 30, 2026
16 checks passed
@wildjames wildjames deleted the aea-6258-remove-outputs branch March 30, 2026 11:29
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