forked from GoogleCloudPlatform/cloud-foundation-fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes the token separator for inline examples from a semicolon to a space
- Loading branch information
Showing
45 changed files
with
140 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ module "dev-firewall" { | |
"./common" | ||
] | ||
} | ||
# tftest:skip | ||
# tftest skip | ||
``` | ||
|
||
### Configuration Structure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ module "docker_artifact_registry" { | |
"roles/artifactregistry.admin" = ["group:[email protected]"] | ||
} | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ module "bigquery-dataset" { | |
view_1 = "my-project|my-dataset|my-table" | ||
} | ||
} | ||
# tftest:modules=1:resources=5 | ||
# tftest modules=1 resources=5 | ||
``` | ||
|
||
### IAM roles | ||
|
@@ -51,7 +51,7 @@ module "bigquery-dataset" { | |
"roles/bigquery.dataOwner" = ["user:[email protected]"] | ||
} | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
roles/bigquery.dataOwner | ||
|
@@ -71,7 +71,7 @@ module "bigquery-dataset" { | |
delete_contents_on_destroy = false | ||
} | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
|
||
### Tables and views | ||
|
@@ -101,7 +101,7 @@ module "bigquery-dataset" { | |
} | ||
} | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
If partitioning is needed, populate the `partitioning` variable using either the `time` or `range` attribute. | ||
|
@@ -133,7 +133,7 @@ module "bigquery-dataset" { | |
} | ||
} | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
To create views use the `view` variable. If you're querying a table created by the same module `terraform apply` will initially fail and eventually succeed once the underlying table has been created. You can probably also use the module's output in the view's query to create a dependency on the table. | ||
|
@@ -171,7 +171,7 @@ module "bigquery-dataset" { | |
} | ||
} | ||
# tftest:modules=1:resources=3 | ||
# tftest modules=1 resources=3 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ module "bigtable-instance" { | |
"roles/bigtable.user" = ["user:[email protected]"] | ||
} | ||
} | ||
# tftest:modules=1:resources=4 | ||
# tftest modules=1 resources=4 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ module "budget" { | |
emails = ["[email protected]"] | ||
} | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
### Pubsub notification | ||
|
@@ -59,7 +59,7 @@ module "pubsub" { | |
name = "budget-topic" | ||
} | ||
# tftest:modules=2:resources=2 | ||
# tftest modules=2 resources=2 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ module "group" { | |
"[email protected]" | ||
] | ||
} | ||
# tftest:modules=1:resources=4 | ||
# tftest modules=1 resources=4 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ module "cloud_run" { | |
volume_mounts = null | ||
}] | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
|
||
### Environment variables (value read from secret) | ||
|
@@ -57,7 +57,7 @@ module "cloud_run" { | |
volume_mounts = null | ||
}] | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
|
||
### Secret mounted as volume | ||
|
@@ -89,7 +89,7 @@ module "cloud_run" { | |
} | ||
] | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
|
||
### Traffic split | ||
|
@@ -114,7 +114,7 @@ module "cloud_run" { | |
"green" = 75 | ||
} | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
|
||
### Eventarc trigger (Pub/Sub) | ||
|
@@ -138,7 +138,7 @@ module "cloud_run" { | |
"topic2" | ||
] | ||
} | ||
# tftest:modules=1:resources=3 | ||
# tftest modules=1 resources=3 | ||
``` | ||
|
||
### Eventarc trigger (Audit logs) | ||
|
@@ -164,7 +164,7 @@ module "cloud_run" { | |
} | ||
] | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
### Service account management | ||
|
@@ -185,7 +185,7 @@ module "cloud_run" { | |
}] | ||
service_account_create = true | ||
} | ||
# tftest:modules=1:resources=2 | ||
# tftest modules=1 resources=2 | ||
``` | ||
|
||
To use an externally managed service account, pass its email in `service_account` and leave `service_account_create` to `false` (the default). | ||
|
@@ -204,7 +204,7 @@ module "cloud_run" { | |
}] | ||
service_account = "[email protected]" | ||
} | ||
# tftest:modules=1:resources=1 | ||
# tftest modules=1 resources=1 | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.