-
Notifications
You must be signed in to change notification settings - Fork 11
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
Importing project environment shows diff #90
Comments
We're actually seeing the same issue on an earlier version (1.2.1). We're not doing an import, we create one custom project environment, and then after it is created when we create a second custom environment for the project, Terraform tells us it wants to change the first one. We've confirmed it is the same in the newest version as well (1.3.3) |
I'm experiencing precisely the same thing @mikeycmccarthy described. |
@EvertonSA @mikeycmccarthy @Sarcasm0naut Thanks for the report. I was out on vacation last week, hence the radio silence. |
Ensure the correct env pointer is used after matching
Amazing, thank you @alexhung ! |
Thank you @alexhung, highly appreciated. |
my internal user also confirms it works now |
When create environment resource, everything goes well. When importing an existing project environment, some weird behavior happens:
Prerequirement to replicate:
Then follows the process:
add the following to your terraform
Run import command:
terraform import project_environment.platform-dta team01:platform-dta
Run terraform plan:
common-prd is an environment that already exists, and it is not intented to be managed by terraform now (it will be in the future).
what my colleague observed is that the import is using the "last" available environment.
The text was updated successfully, but these errors were encountered: