Summary
This is a follow-up to rstudio/ptd#2605 (Migrate to Public Docker Hub). After the migration PR is deployed to all workloads with force_delete=True on ECR/ACR resources, we can safely remove the resource definitions entirely.
Background
In rstudio/ptd#2605, we:
- Migrated PTD to pull images from public Docker Hub (
docker.io/posit/*)
- Added
force_delete=True to ECR repository resources
- Removed the image copying step from the CLI
This follow-up issue tracks the cleanup of the now-unused ECR/ACR infrastructure.
Tasks
ECR Cleanup (AWS)
ACR Cleanup (Azure)
Go Code Cleanup
Deployment Strategy
- First: Ensure rstudio/ptd#2605 has been deployed to all workloads
- Then: Deploy this cleanup PR
- Pulumi will delete the empty ECR repositories (safe due to
force_delete=True)
Files to Modify
python-pulumi/src/ptd/pulumi_resources/aws_workload_persistent.py
python-pulumi/src/ptd/pulumi_resources/aws_control_room_persistent.py
python-pulumi/src/ptd/pulumi_resources/azure_workload_persistent.py
Notes
- ECR repositories should be empty at this point since images are now pulled from Docker Hub
- The
force_delete=True flag added in rstudio/ptd#2605 allows deletion even if images remain
Summary
This is a follow-up to rstudio/ptd#2605 (Migrate to Public Docker Hub). After the migration PR is deployed to all workloads with
force_delete=Trueon ECR/ACR resources, we can safely remove the resource definitions entirely.Background
In rstudio/ptd#2605, we:
docker.io/posit/*)force_delete=Trueto ECR repository resourcesThis follow-up issue tracks the cleanup of the now-unused ECR/ACR infrastructure.
Tasks
ECR Cleanup (AWS)
aws_workload_persistent.pyaws_control_room_persistent.pymanage_ecr_repositoriesconfig field from control roomshared_resources_read_onlyECR-related logicACR Cleanup (Azure)
azure_workload_persistent.pyGo Code Cleanup
Deployment Strategy
force_delete=True)Files to Modify
python-pulumi/src/ptd/pulumi_resources/aws_workload_persistent.pypython-pulumi/src/ptd/pulumi_resources/aws_control_room_persistent.pypython-pulumi/src/ptd/pulumi_resources/azure_workload_persistent.pyNotes
force_delete=Trueflag added in rstudio/ptd#2605 allows deletion even if images remain