---
title: "Discussion on \"A misadventure with Terraform Sets & PagerDuty Schedules\" | Hashnode"
description: "Discussion on \"A misadventure with Terraform Sets & PagerDuty Schedules\". How Terraform's setunion() disregards ordering."
url: "https://hashnode.com/posts/a-misadventure-with-terraform-sets-pagerduty-schedules/64bc64478fcf773880043b49"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A misadventure with Terraform Sets & PagerDuty Schedules](https://tratnayake.dev/a-misadventure-with-terraform-sets-pagerduty-schedules?utm_source=hashnode&utm_medium=feed)

How Terraform's setunion() disregards ordering.

Jul 22, 2023 · 4 min read · tratnayake.dev  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#sre](https://hashnode.com/tag/sre)
-   [#devops](https://hashnode.com/tag/devops)
-   [#oncall](https://hashnode.com/tag/oncall)
-   [#pagerduty](https://hashnode.com/tag/pagerduty)

## Written by

[Thilina Ratnayake](https://hashnode.com/@tratnayake)

@tratnayake · Vancouver,BC

  
[View profile](https://hashnode.com/@tratnayake)

Doing "engineering" things

I'm a developer from Vancouver, BC who's had an interesting journey in tech starting from support, through cloud infrastructure and project management. Currently I work as an SRE at lightstep helping build and "operationalize" things that helps to guide others towards better o11y :)

## Responses 1

Markdown supported · ⌘↵ to post

[Paul Roche](https://hashnode.com/@paulroche)

[Aug 13, 2023](https://hashnode.com/posts/a-misadventure-with-terraform-sets-pagerduty-schedules/64bc64478fcf773880043b49/comment/64d81e94d459393b57af9be7)

what did you do instead of `setunion()`? did you discard the whole refactor?

[Thilina Ratnayake](https://hashnode.com/@tratnayake)

[Nov 25, 2023](https://hashnode.com/posts/a-misadventure-with-terraform-sets-pagerduty-schedules/64bc64478fcf773880043b49/comment/64d81e94d459393b57af9be7#reply-6561419629658b9b067c0e0a)

Yeah I believe I discarded the whole refactor and had to manually list out the members :'(
