Repository navigation
feat: Atmos List Instances, Pro Upload - #1254
Merged
Merged
Conversation
Contributor
|
💥 This pull request now has conflicts. Could you fix it Dan Miller (@milldr)? 🙏 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1254 +/- ##
==========================================
+ Coverage 56.71% 56.98% +0.26%
==========================================
Files 280 284 +4
Lines 29708 30286 +578
==========================================
+ Hits 16850 17259 +409
- Misses 11045 11200 +155
- Partials 1813 1827 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…into feat/atmos-list-upload
This was referenced Sep 28, 2025
This was referenced Oct 4, 2025
This was referenced Oct 14, 2025
This was referenced Oct 31, 2025
This was referenced Nov 7, 2025
7 tasks
This was referenced Mar 19, 2026
This was referenced Mar 26, 2026
This was referenced Apr 6, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
New command for
atmos list instancesIncludes option for
--upload--upload, send the result to Atmos ProNew arg for
atmos terraform plan,--upload-statusOther changes:
This pull request introduces new functionality for uploading Terraform plan results and Atmos instances to the Pro API, improves error handling throughout the codebase, and refactors several areas for clarity and maintainability. The most notable changes are the addition of status upload logic for Terraform plans, new error definitions for Pro API interactions, and the creation of a new command for listing Atmos instances. Below are the key changes grouped by theme.
Pro API Integration and Terraform Plan Status Upload:
uploadStatusfunction and a flag (upload-status) for theplancommand incmd/terraform_commands.goandinternal/exec/pro.go. This enables reporting of plan status and drift detection to the Pro API. [1] [2]shouldUploadStatusfunction to determine when status should be uploaded, based on command type and component settings.Error Handling Improvements:
errors/errors.go, and refactored error wrapping to provide more context throughout the exec logic. [1] [2] [3] [4] [5] [6]Atmos Instances Listing Command:
list instancescommand incmd/list_instances.goto list Atmos instances and optionally upload them to the Pro API. This includes flag handling and integration with the existing list command structure.API Client Construction Refactoring:
NewAtmosProAPIClientFromEnvand related usage ininternal/exec/describe_affected.goandinternal/exec/pro.go. [1] [2] [3] [4]Minor Codebase Cleanups:
cmd/cmd_utils.go,cmd/terraform_commands.go, andinternal/exec/describe_affected.go. [1] [2] [3]These changes collectively improve the reliability, maintainability, and feature set of the Atmos CLI, especially around integration with the Pro API and error visibility.
why
We want to build drift detection into Atmos Pro. In order to do this, we need to upload an object similar to the describe affected object. This object needs specific component instances for specific stacks
With
atmos list instances --upload, we can find all component and stacks with drift detection and upload to Atmos ProWith
atmos terraform plan --upload-status, we can return the result of whether or not there is drift to APreferences
screenshots
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Tests