Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/spacelift-policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ resource "spacelift_policy" "this" {
data "http" "this" {
count = local.is_body_from_url ? 1 : 0
url = local.body_url

lifecycle {
postcondition {
condition = self.status_code >= 200 && self.status_code < 300
error_message = "There was an error fetching policy: '${local.body_url}'"
}
}
}