Skip to content

Stop Exporting Tables to Redshift via DMS that DBT is accessing via Zero ETL - #74627

Open
sureshc wants to merge 1 commit into
stagingfrom
infrastructure/stop-exporting-most-tables-to-redshift-via-dms
Open

Stop Exporting Tables to Redshift via DMS that DBT is accessing via Zero ETL#74627
sureshc wants to merge 1 commit into
stagingfrom
infrastructure/stop-exporting-most-tables-to-redshift-via-dms

Conversation

@sureshc

@sureshc sureshc commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@code-dot-org/red-team has updated most dbt models to read data from Zero ETL Materialized Views. Stop exporting tables from MySQL to Redshift via Database Migration Service (DMS) if there are no longer any dbt models that reference the DMS tables in Redshift.

RED Team - The following tables are now exporting to Redshift via Zero ETL and ready for you to cutover in dbt to use the Materialized Views:

  • contained_level_answers
  • contained_levels
  • levels_script_levels
  • schools

HoneyBadger errors show that bin/cron/redshift_rollups has been failing for more than a year, so I'm ignoring the tables it's dependent on for determining whether or not to continue exporting them via DMS.

Testing story

code-dot-org $ bundle exec rake stack:data:validate RAILS_ENV=production ADMIN=true
Finished stack:data:environment (less than a minute)
Pending update for stack `DATA-production`:
Modify DMSCronPii [AWS::DMS::ReplicationTask] Properties Replacement: Conditional (TableMappings)
Remove DMSCronUserHierarchyPii [AWS::DMS::ReplicationTask] 
Remove DMSCronUserHierarchy [AWS::DMS::ReplicationTask] 
Modify DMSCron [AWS::DMS::ReplicationTask] Properties Replacement: Conditional (TableMappings)
Finished stack:data:validate (less than a minute)

Deployment notes

Privacy and security

…ero ETL.

Co-Authored-By: Claude <claude@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

[WARN: DMS Config Modified] This PR modifies the aws/dms/tasks.yml file. These changes must be deployed manually by @code-dot-org/infrastructure before merging.

@sureshc
sureshc marked this pull request as ready for review August 13, 2026 21:42
@sureshc
sureshc requested a review from a team as a code owner August 13, 2026 21:42
@sureshc
sureshc requested a review from a team August 13, 2026 21:44
@sureshc

sureshc commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

I backed up the configuration of the Replication Tasks that are deleted by this change (using AWS CLI commands) and then executed the deployment:

code-dot-org $ bundle exec rake stack:data:start RAILS_ENV=production ADMIN=true

Finished stack:data:environment (less than a minute)
Pending update for stack `DATA-production`:
Modify DMSCronPii [AWS::DMS::ReplicationTask] Properties Replacement: Conditional (TableMappings)
Remove DMSCronUserHierarchyPii [AWS::DMS::ReplicationTask] 
Remove DMSCronUserHierarchy [AWS::DMS::ReplicationTask] 
Modify DMSCron [AWS::DMS::ReplicationTask] Properties Replacement: Conditional (TableMappings)
Proceed? [y/n]
y
Stack update requested, waiting for provisioning to complete...
.2026-08-13 22:13:36 UTC- DMSCron [UPDATE_IN_PROGRESS]
2026-08-13 22:13:36 UTC- DMSCronPii [UPDATE_IN_PROGRESS]
........2026-08-13 22:14:21 UTC- DMSCronPii [UPDATE_COMPLETE]
2026-08-13 22:14:21 UTC- DMSCron [UPDATE_COMPLETE]
.2026-08-13 22:14:23 UTC- DATA-production [UPDATE_COMPLETE_CLEANUP_IN_PROGRESS]
2026-08-13 22:14:23 UTC- DATA-production [UPDATE_COMPLETE_CLEANUP_IN_PROGRESS]

Stack update complete.

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