Skip to content

fix: use Atlas EncodeStateID format for SDK-based resources using DecodeStateID - #80

Merged
fernandezcuesta merged 3 commits into
mainfrom
fix/atlas-sdk-specific-id-fields
Apr 30, 2026
Merged

fix: use Atlas EncodeStateID format for SDK-based resources using DecodeStateID#80
fernandezcuesta merged 3 commits into
mainfrom
fix/atlas-sdk-specific-id-fields

Conversation

@fernandezcuesta

@fernandezcuesta fernandezcuesta commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Add a mechanism to properly render the ID for those resources where Atlas TF provider encodes the state ID (see https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/internal/common/conversion/encode_state.go#L24).

Also, revert back the external-name annotation as a possible way to import resources.

…odeStateID

Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
@fernandezcuesta

Copy link
Copy Markdown
Collaborator Author

Fixes: #75
Fixes: #78

Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
@fernandezcuesta
fernandezcuesta merged commit 7f34647 into main Apr 30, 2026
11 checks passed
@fernandezcuesta
fernandezcuesta deleted the fix/atlas-sdk-specific-id-fields branch April 30, 2026 10:21
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.

2 participants