Use unique names for logging buckets in examples

Logging bucket name can be reused only after 7 days (when it is actually
deleted). When different tests reuse the same name, the ones that are
executed as 2nd and later will fail with message:
```
Error updating Logging Bucket Config [...]: googleapi: Error 400: Buckets
must be in an ACTIVE state to be modified
```

As their actual state is:
```
lifecycleState: DELETE_REQUESTED
```
This commit is contained in:
Wiktor Niesiobędzki
2023-12-03 10:03:22 +00:00
parent 4ec9006cc1
commit d9f9410ae5
3 changed files with 4 additions and 4 deletions

View File

@@ -461,7 +461,7 @@ module "bucket" {
source = "./fabric/modules/logging-bucket"
parent_type = "project"
parent = var.project_id
id = "bucket"
id = "${var.prefix}-bucket"
}
module "project-host" {
@@ -822,7 +822,7 @@ module "bucket" {
source = "./fabric/modules/logging-bucket"
parent_type = "project"
parent = var.project_id
id = "bucket"
id = "${var.prefix}-bucket"
}
# tftest modules=7 resources=53 inventory=data.yaml e2e
```