Skip to content

Comments

Migrate mobile-purchases-soft-opt-in-acquisitions from CloudFormation to native CDK#1940

Draft
andresilva-guardian wants to merge 3 commits intomainfrom
afs/cdk-migration/mobile-purchases-soft-opt-in-acquisitions
Draft

Migrate mobile-purchases-soft-opt-in-acquisitions from CloudFormation to native CDK#1940
andresilva-guardian wants to merge 3 commits intomainfrom
afs/cdk-migration/mobile-purchases-soft-opt-in-acquisitions

Conversation

@andresilva-guardian
Copy link
Contributor

@andresilva-guardian andresilva-guardian commented Jul 30, 2025

Summary

This PR completes the migration of the mobile-purchases-soft-opt-in-acquisitions infrastructure from CloudFormation/SAM deployment to a native CDK stack, improving maintainability and consistency with other Guardian projects.

What's Changed

🆕 New Files

  • cdk/lib/mobile-purchases-soft-opt-in-acquisitions.ts - Complete CDK stack implementation for soft opt-in acquisitions infrastructure
  • cdk/lib/mobile-purchases-soft-opt-in-acquisitions.test.ts - Unit tests for the soft opt-in acquisitions stack

📝 Modified Files

  • cdk/bin/cdk.ts - Added soft opt-in acquisitions stack instantiations for CODE and PROD environments

🗑️ Files to Remove (Post-Deployment)

  • Lines 1450-1700 in cloudformation.yaml - Original CloudFormation template section for soft opt-in acquisitions (will be removed after successful deployment)

Breaking Changes

None - this is a like-for-like migration maintaining full backward compatibility with existing Lambda code and configuration.

Related Issues

This addresses the ongoing initiative to migrate all CloudFormation templates to native CDK implementations across the Value Team's repositories.


Note: The original CloudFormation template section will be removed in a follow-up PR after successful deployment and verification of the CDK implementation.

@andresilva-guardian andresilva-guardian changed the title MobilePurchasesSoftOptInAcquisitions CDK stack and tests Migrate mobile-purchases-soft-opt-in-acquisitions from CloudFormation to native CDK Jul 30, 2025
@andresilva-guardian andresilva-guardian marked this pull request as draft July 30, 2025 15:26
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.

1 participant