Skip to content

Cannot Import On-Call Schedule #178

@philnielsen-mercury

Description

@philnielsen-mercury

Terraform Version

Terraform v1.9.2
...

Terraform Configuration Files

import {
  to = firehydrant_on_call_schedule.infrastructure_schedule
  id = "<ID>"
}
...

Debug Output

2025-03-04T20:41:59.723Z [DEBUG] provider.terraform-provider-firehydrant_v0.13.5: Read signal rule: <ID>: team_id="" tf_rpc=ReadResource tf_provider_addr=provider tf_req_id=6da4eef8-533e-8892-f7f7-115cc10770ea tf_resource_type=firehydrant_on_call_schedule @caller=github.com/firehydrant/terraform-provider-firehydrant/provider/on_call_schedule_resource.go:244 @module=provider id=<ID> timestamp=2025-03-04T20:41:59.723Z

Expected Behavior

We could use an import statement to import an on-call schedule

Actual Behavior

Error: Cannot import non-existent remote object

Steps to Reproduce

  1. create an on-call schedule in the UI
  2. try and import with the above block

Additional Context

I think the error is because the team ID is "", when importing it probably needs to have a case for supplying the team ID, lots of other providers use separator characters to supply nested resources. example

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions