Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move domain name configuration from CFN to cdk #66

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

jacobwinch
Copy link
Contributor

@jacobwinch jacobwinch commented May 24, 2022

N.B. this PR depends on #64 and #65.

What does this change?

We are migrating the mobile-save-for-later service from CloudFormation to @guardian/cdk. The migration will involve 5 PRs:

  1. Add @guardian/cdk to repository; update CI & deployment wiring accordingly (Add @guardian/cdk to repository and deploy stage-specific templates #64)
  2. Provision a new version of the infrastructure using @guardian/cdk (Add cdk-defined version of API infrastructure #65)
  3. Move DNS configuration from CloudFormation into @guardian/cdk (but continue routing requests to old infrastructure) [this PR]
  4. Update DNS configuration (start routing requests to new infrastructure) (Route all traffic to the cdk-defined infrastructure #67)
  5. Remove old infrastructure (Remove superfluous resources - these have been replaced by GuCDK versions #73)

How to test

I've deployed this to CODE and used a debug version of the app to confirm that saving articles/viewing saved articles still works as expected. (I checked the AWS Lambda logs and DynamoDB to confirm that server side code was being exercised as expected).

How can we measure success?

We are a step closer to defining all infrastructure using @guardian/cdk!

Have we considered potential risks?

Yes, the risk is still low at this stage. Although we have moved some resources from CloudFormation into @guardian/cdk, this PR doesn't actually make any DNS changes.

Copy link
Contributor

@waisingyiu waisingyiu left a comment

Choose a reason for hiding this comment

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

Thank you for your great work!

cdk/lib/mobile-save-for-later.ts Show resolved Hide resolved
@jacobwinch jacobwinch force-pushed the jw-cdk-migration-part-2 branch from 8a10497 to 6e0aa90 Compare June 8, 2022 13:41
Base automatically changed from jw-cdk-migration-part-2 to master June 8, 2022 13:52
@jacobwinch jacobwinch force-pushed the jw-cdk-migration-part-3 branch from fb069db to 9d93348 Compare June 8, 2022 14:57
@jacobwinch jacobwinch marked this pull request as ready for review June 8, 2022 15:02
@jacobwinch jacobwinch merged commit e163903 into master Jun 9, 2022
@jacobwinch jacobwinch deleted the jw-cdk-migration-part-3 branch June 9, 2022 08:43
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