Chore: [AEA-6520] - Adopt CDK deployment#2549
Draft
tstephen-nhs wants to merge 65 commits intomainfrom
Draft
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This reverts commit 35aa667.
CDK PR stack names pfp-cdk-pr-N did not match the pfp-api prefix expected by deletePrStacks.ts. Rename to pfp-api-pr-N so that the automated PR stack cleanup works correctly. Also drop the CDK- prefix from VERSION_NUMBER (PR-N is sufficient since SAM PR stacks use pfp-pr-N and there is no collision). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add parallel CDK deployment pipeline alongside existing SAM deployment. CDK uses calculateVersionedStackName for zero-downtime rolling deploys. Changes: - ci.yml: add cdk_package_code, cdk_release_dev, cdk_release_dev_sandbox, cdk_release_qa jobs running alongside existing SAM jobs - release.yml: add cdk_package_code and cdk_release_* jobs for all environments (dev, dev-sandbox, ref, qa, int, sandbox, prod) - delete_old_cloudformation_stacks.yml: add devcontainer-based delete-old-cdk-cloudformation-stacks job using npm run delete-old-pr-stacks; remove push:branches:[main] trigger (CDK inline delete handles main stacks) CDK stack names use pfp-api/pfp-api-sandbox prefix to align with the existing deleteMainStacks.ts and deletePrStacks.ts scripts. SAM deployment is retained unchanged for parallel running. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
Following New: [AEA-6257] - scaffold app with CDK this PR adopts CDK deployment for CI and release.
SAM templates are left in place for now.