Skip to content

Commit 81beebc

Browse files
committed
chore: Add labels
- Timestamp - Scenario Can be used for filtering the automated tests
1 parent d104648 commit 81beebc

File tree

1 file changed

+6
-1
lines changed
  • released/cicd/setup_subaccount_cf

1 file changed

+6
-1
lines changed

released/cicd/setup_subaccount_cf/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
# Generating random ID for subdomain
33
###############################################################################################
44
resource "random_uuid" "uuid" {}
5+
56
###############################################################################################
67
# Creation of subaccount
78
###############################################################################################
89
resource "btp_subaccount" "project" {
910
name = var.subaccount_name
10-
subdomain = "btp-gp${random_uuid.uuid.result}"
11+
subdomain = "btp-gp${random_uuid.uuid.id}"
1112
region = lower(var.region)
13+
labels = {
14+
"scenario" = ["automated-test-pipeline"]
15+
"timestamp" = ["${formatdate("DD-MMM-YYYY|hh-mm", timestamp())}"]
16+
}
1217
}
1318
data "btp_whoami" "me" {}
1419

0 commit comments

Comments
 (0)