forked from spacelift-io/terraform-spacelift-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
29 lines (24 loc) · 693 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
terraform {
required_providers {
spacelift = {
source = "spacelift-io/spacelift"
}
}
}
resource "spacelift_stack" "example-stack" {
github_enterprise {
namespace = "akmal-spacelift" # The GitHub organization / user the repository belongs to
}
name = var.new_stack_name
administrative = true
autodeploy = false
branch = "main"
description = "simple gcp compute instance"
repository = "stack_for_module_usage"
terraform_version = "0.12.27"
}
resource "spacelift_webhook" "simple-webhook-4" {
stack_id = spacelift_stack.example-stack.id
endpoint = "https://example.com/example_webhook"
secret = "my_secret"
}