Atlantis UI plan refresh
Author: mwozniakkCreated Aug 5, 2025Updated Sep 24, 2026
Labelsfeature
Community Note
- Please vote on this issue by adding a reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Describe the user story
Setup:
- Multiple Atlantis containers deployed on AWS ECS
- Shared file system: Amazon EFS, mounted at the same path in every container
- Lock database: Redis As a team, we rely on the Atlantis UI to review plan results and the full job history. During rolling updates or auto-scaling events, an individual container is stopped and replaced. After the replacement, the Jobs list in the UI is empty, and the detailed step plan output is no longer visible, even though the corresponding workflow-workspace.tfplan files are still safely stored in EFS.
Describe the solution you'd like On container start-up, Atlantis should re-hydrate the UI from any plan artifacts already present in the shared storage:
- Discovery phase • Scan the EFS mount for workflow-workspace.tfplan for every repo/workspace.
- Re-index phase • Populate the internal job cache so that the Jobs page shows the historical entries exactly as they appeared before the container restart.
The experience should mirror how locks survive restarts when Redis is used: plans and their metadata become first-class persisted resources, not ephemeral container state.
Describe the drawbacks of your solution
• Startup latency – Large repositories with many historical plans could slow container boot time while the index is rebuilt.
• Metadata drift – If a plan file exists but its corresponding PR or commit has been deleted, the UI might surface “orphaned” entries. Additional validation logic would be required.
• Concurrency complexity – Multiple containers running the discovery simultaneously may race to write identical metadata into Redis or memory. Coordination (e.g., Redis transactions or leader election) will be needed.
• Maintenance overhead – Future changes to plan file formats or storage paths would need matching migration logic in the re-hydration code.Describe alternatives you've considered
1. Separate “Archived Plans” tab
• Keep the current Jobs list ephemeral, but add a new tab that lists plans discovered on disk.
• Drawback: Two nearly identical views can confuse users; reviewers may not know where to look first.
2. Persist job metadata in Redis (or DynamoDB) instead of on-disk scanning
• Write a small record to Redis each time a plan completes; at startup, rebuild the UI from Redis keys.
• Drawback: Introduces a second persistence strategy (plans on EFS, metadata in Redis); if the cache is flushed, the index is lost while files remain.
3. Force containers to run in “sticky” mode (no rolling restarts)
• Disable automatic task replacement so that UI state is never lost.
• Drawback: Removes the main benefit of ECS—automatic updates and rescheduling—so is not viable operationally.Given these trade-offs, re-hydrating the Jobs list directly from EFS strikes the best balance between user experience and architectural simplicity, staying aligned with how plan artifacts are already stored today.
Source: runatlantis/atlantis