Skip to content

Commit 06f29f8

Browse files
authored
chore: Add labels (#437)
- Timestamp - Scenario Can be used for filtering the automated tests
1 parent d104648 commit 06f29f8

File tree

1 file changed

+5
-0
lines changed
  • released/cicd/setup_subaccount_cf

1 file changed

+5
-0
lines changed

released/cicd/setup_subaccount_cf/main.tf

Lines changed: 5 additions & 0 deletions
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
1011
subdomain = "btp-gp${random_uuid.uuid.result}"
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)