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

Add support for position #115

Open runes83 opened 2 years ago

runes83 commented 2 years ago

Add the support for setting a position on both components and components group. Now they come out a little random.

sbecker59 commented 2 years ago

Hi @runes83

Thank you for this suggestion

The API returns a "position": int on component creation... and a "position": int on component group creation. They are not listed as parameters that can be set.

POST https://api.statuspage.io/v1/pages/{page_id}/components

{
  "component": {
    "description": "string",
    "status": "operational",
    "name": "string",
    "only_show_if_degraded": true,
    "group_id": "string",
    "showcase": true,
    "start_date": "2022-06-15"
  }
}

You should be able to sort your components created by Terraform in Statuspage' UI - The terraform plans should remain unchanged.

If you see something that I haven't seen, don't hesitate.