Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: allow mapped resources in our terraform provider #6255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2023
Merged

Conversation

kylecarbs
Copy link
Member

A fixed-up #6242. Our tests passed in that PR due to a lack of prior_state in our test cases. In dev.coder.com, we were seeing failures with the following error:

recv workspace provision: plan terraform: duplicate agent name: main    {"job_id": "d5061042-ebca-480c-9b05-7ea990335d3f"}

This was because we had the prior state in dogfood, but none in our local tests. We were appending all resources regardless of unique identity to an array instead of indexing them by address.

Our tests now duplicate the current state if no prior state exists, which should help prevent this in the future.

@kylecarbs kylecarbs requested a review from mtojek February 17, 2023 15:36
@kylecarbs kylecarbs self-assigned this Feb 17, 2023
@kylecarbs kylecarbs enabled auto-merge (squash) February 17, 2023 15:47
@kylecarbs kylecarbs merged commit a79f4a0 into main Feb 17, 2023
@kylecarbs kylecarbs deleted the mappedapps2 branch February 17, 2023 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants