Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ensure unique policy name (#6) #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .spacelift/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 1
module_version: 0.1.1
module_version: 0.2.0

tests:
- name: Default test
Expand Down
4 changes: 3 additions & 1 deletion policy.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
resource "random_uuid" "this" {}

resource "spacelift_policy" "msteams-integration" {
name = "MS Teams Integration (${var.channel_name})"
name = "MS Teams Integration (${var.channel_name}) <${random_uuid.this.result}>"
type = "NOTIFICATION"
space_id = var.space_id

Expand Down
4 changes: 4 additions & 0 deletions providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ terraform {
source = "spacelift-io/spacelift"
version = ">= 1.1.4"
}
random = {
source = "hashicorp/random"
version = ">= 3.6.1"
}
}
}