Open Mazorius opened 1 month ago
1.5.7
locals { test = { services = [ { name = "Test 1" description = "description" tags = ["TEST-1", "TAG"] }, { name = "Test 2" description = "description" tags = ["TEST-2", "TAG"] }, ] } } resource "opsgenie_service" "test" { for_each = { for service in local.test.services : service.name => service } name = each.value.name description = each.value.description tags = each.value.tags team_id = opsgenie_team.test.id }
The scripts run successful every time.
During initial run after import a 400 bad request happens. A second run is successful.
terraform import 'opsgenie_service.test["Test 1"]' 2387A5D4-21AC-4D94-B431-7313786F66D2
terraform plan -out plan.cache
terraform apply plan.cache
Terraform Version
1.5.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The scripts run successful every time.
Actual Behavior
During initial run after import a 400 bad request happens. A second run is successful.
Steps to Reproduce
terraform import 'opsgenie_service.test["Test 1"]' 2387A5D4-21AC-4D94-B431-7313786F66D2
terraform plan -out plan.cache
terraform apply plan.cache