Migrate logging-bucket tests

This commit is contained in:
Julio Castillo
2023-04-14 17:33:08 +02:00
parent 0150e97e51
commit 771dd02b18
7 changed files with 89 additions and 148 deletions

View File

@@ -17,7 +17,7 @@ module "bucket" {
parent = var.project_id
id = "mybucket"
}
# tftest modules=1 resources=1
# tftest modules=1 resources=1 inventory=project.yaml
```
@@ -37,10 +37,31 @@ module "bucket-default" {
id = "_Default"
retention = 10
}
# tftest modules=2 resources=2
# tftest modules=2 resources=2 inventory=retention.yaml
```
### Organization and billing account buckets
```hcl
module "bucket-organization" {
source = "./fabric/modules/logging-bucket"
parent_type = "organization"
parent = "organizations/012345"
id = "mybucket"
}
module "bucket-billing-account" {
source = "./fabric/modules/logging-bucket"
parent_type = "billing_account"
parent = "012345"
id = "mybucket"
}
# tftest modules=2 resources=2 inventory=org-ba.yaml
```
<!-- BEGIN TFDOC -->
## Variables
| name | description | type | required | default |