Skip to content
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

Duplicated azurerm_log_analytics_workspace in example darp. #41

Closed
1 task done
lonegunmanb opened this issue Dec 18, 2023 · 0 comments
Closed
1 task done

Duplicated azurerm_log_analytics_workspace in example darp. #41

lonegunmanb opened this issue Dec 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lonegunmanb
Copy link
Member

lonegunmanb commented Dec 18, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.6.3

Module Version

0.2.0

AzureRM Provider Version

3.85.0

Affected Resource(s)/Data Source(s)

azurerm_log_analytics_workspace

Terraform Configuration Files

Example code in `example/dapr`

tfvars variables values

No

Debug Output/Panic Output

TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │ Error: A resource with the ID "/subscriptions/xxxxxxx/resourceGroups/rg-5e9709f5ec831d95/providers/Microsoft.OperationalInsights/workspaces/testlaworkspace" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_log_analytics_workspace" for more information.
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │ 
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │   with azurerm_log_analytics_workspace.test,
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │   on main.tf line 76, in resource "azurerm_log_analytics_workspace" "test":
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │   76: resource "azurerm_log_analytics_workspace" "test" {
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: │ 
TestExamplesDapr 2023-12-18T02:58:37Z command.go:185: ╵

Expected Behaviour

Pr #38 failed due to this error, but it's weird that the current main branch cannot reproduce this issue.

We've created a log analytics workspace at line 76, but we forgot to pass it's id to var.log_analytics_workspace, according to the toggle expression, the module would try to create another log analytics workspace with the same name, which should cause an error. It's weird that version d6c3196 met no error but the same issue blocked #38.

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant