Skip to content

Commit

Permalink
projects-data-source e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
dibaskar-google committed Mar 14, 2024
1 parent 645275a commit 8073dcc
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions modules/projects-data-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ A good usage pattern would be when we want all the projects under a specific fol

```hcl
module "my-org" {
source = "./fabric/modules/projects-data-source"
parent = var.organization_id
source = "./fabric/modules/projects-data-source"
parent = var.organization_id
}
output "project_numbers" {
Expand All @@ -32,7 +32,7 @@ output "project_numbers" {
module "my-dev" {
source = "./fabric/modules/projects-data-source"
parent = var.folder_id
query = "labels.env:DEV state:ACTIVE"
query = "labels.env:DEV state:ACTIVE"
}
output "dev-projects" {
Expand All @@ -46,20 +46,20 @@ output "dev-projects" {
```hcl
module "my-filtered" {
source = "./fabric/modules/projects-data-source"
parent = var.organization_id
parent = var.organization_id
ignore_projects = [
"sandbox-*", # wildcard ignore
"project-full-id", # specific project id
"0123456789" # specific project number
]
include_projects = [
"sandbox-114", # include specific project which was excluded by wildcard
"415216609246" # include specific project which was excluded by wildcard (by project number)
"sandbox-114", # include specific project which was excluded by wildcard
"415216609246" # include specific project which was excluded by wildcard (by project number)
]
ignore_folders = [ # subfolders are ingoner as well
"343991594985",
ignore_folders = [ # subfolders are ingoner as well
"343991594985",
"437102807785",
"345245235245"
]
Expand All @@ -71,7 +71,6 @@ output "filtered-projects" {
}
# tftest skip (uses data sources) e2e
```
<!-- BEGIN TFDOC -->

Expand Down

0 comments on commit 8073dcc

Please sign in to comment.