sbecker59 / terraform-provider-statuspage

Terraform Statuspage provider
https://registry.terraform.io/providers/sbecker59/statuspage/
Mozilla Public License 2.0
8 stars 5 forks source link

Inject incident to statuspage #45

Closed miklosmuller closed 3 years ago

miklosmuller commented 3 years ago

I would like to know whether it is possible to inject incidents to Atlassian Statuspage with terraform. I cannot seem to do that.

Terraform Version

Terraform Cloud

Affected Resource(s)

Terraform Configuration Files

main.tf: terraform { required_providers { statuspage = { source = "sbecker59/statuspage" } } }

provider "statuspage" { api_key = "concealed" }

resource "statuspage_incident" "test" { id = "test" }

Debug Output

Terraform v0.15.4 on linux_amd64 Configuring remote state backend... Initializing Terraform configuration... ╷ │ Error: Invalid or unknown key │  │  with statuspage_incident.test, │  on main.tf line 28, in resource "statuspage_incident" "test": │  28: id = "test" │  ╵ 

Panic Output

n/a

Expected Behavior

A basic incident injected to statuspage?

Actual Behavior

Terraform plan bails out with error

Steps to Reproduce

  1. Connect Terraform Cloud to GitHub
  2. commit main.tf
  3. See planning failed.

Important Factoids

n/a

References

n/a

sbecker59 commented 3 years ago

Thanks for this issue.

Indeed, it is a mistake on my part. :poop: There should not be the incident resource available at registry.terraform.io. I am currently working :construction: on this resource. I hope to be able to make it available next week.

sbecker59 commented 3 years ago

The new version of the provider 0.5.0 included now the management of the statuspage_incident resources.

miklosmuller commented 3 years ago

Thank you for the effort