You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/cloud-operations/asset-inventory-feed-remediation/README.md
+9-14
Original file line number
Diff line number
Diff line change
@@ -50,30 +50,25 @@ Run the `subscription_pull` command until it returns nothing, then run the follo
50
50
- the `tag_add` command
51
51
- the `cf_logs` command until the logs show that the change has been picked up, verified, and the compliant tags have been force-set on the instance
52
52
- the `tag_show` command to verify that the function output matches the resource state
53
-
54
-
55
-
56
53
<!-- BEGIN TFDOC -->
57
54
58
55
## Variables
59
56
60
57
| name | description | type | required | default |
61
58
|---|---|:---:|:---:|:---:|
62
-
| project_id | Project id that references existing project. | <code>string</code> | ✓ ||
63
-
| bundle_path | Path used to write the intermediate Cloud Function code bundle. | <code>string</code> || <code>"./bundle.zip"</code> |
64
-
| name | Arbitrary string used to name created resources. | <code>string</code> || <code>"asset-feed"</code> |
65
-
| project_create | Create project instead of using an existing one. | <code>bool</code> || <code>false</code> |
66
-
| region | Compute region used in the example. | <code>string</code> || <code>"europe-west1"</code> |
59
+
|[project_id](variables.tf#L35)| Project id that references existing project. | <code>string</code> | ✓ ||
60
+
|[bundle_path](variables.tf#L17)| Path used to write the intermediate Cloud Function code bundle. | <code>string</code> || <code>"./bundle.zip"</code> |
61
+
|[name](variables.tf#L23)| Arbitrary string used to name created resources. | <code>string</code> || <code>"asset-feed"</code> |
62
+
|[project_create](variables.tf#L29)| Create project instead of using an existing one. | <code>bool</code> || <code>false</code> |
63
+
|[region](variables.tf#L40)| Compute region used in the example. | <code>string</code> || <code>"europe-west1"</code> |
Copy file name to clipboardExpand all lines: examples/cloud-operations/dns-shared-vpc/README.md
+8-11
Original file line number
Diff line number
Diff line change
@@ -18,27 +18,24 @@ The resources created in this example are shown in the high level diagram below:
18
18
<imgsrc="diagram.png"width="640px">
19
19
20
20
Note that Terraform 0.13 at least is required due to the use of `for_each` with modules.
21
-
22
-
23
21
<!-- BEGIN TFDOC -->
24
22
25
23
## Variables
26
24
27
25
| name | description | type | required | default |
28
26
|---|---|:---:|:---:|:---:|
29
-
| billing_account_id | Billing account associated with the GCP Projects that will be created for each team. | <code>string</code> | ✓ ||
30
-
| folder_id | Folder ID in which DNS projects will be created. | <code>string</code> | ✓ ||
31
-
| shared_vpc_link | Shared VPC self link, used for DNS peering. | <code>string</code> | ✓ ||
32
-
| dns_domain | DNS domain under which each application team DNS domain will be created. | <code>string</code> || <code>"example.org"</code> |
33
-
| prefix | Customer name to use as prefix for resources' naming. | <code>string</code> || <code>"test-dns"</code> |
34
-
| project_services | Service APIs enabled by default. | <code>list(string)</code> || <codetitle="[ "compute.googleapis.com", "dns.googleapis.com", ]">[…]</code> |
35
-
| teams | List of application teams requiring their own Cloud DNS instance. | <code>list(string)</code> || <codetitle="[ "team1", "team2", ]">[…]</code> |
27
+
|[billing_account_id](variables.tf#L17)| Billing account associated with the GCP Projects that will be created for each team. | <code>string</code> | ✓ ||
28
+
|[folder_id](variables.tf#L28)| Folder ID in which DNS projects will be created. | <code>string</code> | ✓ ||
29
+
|[shared_vpc_link](variables.tf#L48)| Shared VPC self link, used for DNS peering. | <code>string</code> | ✓ ||
30
+
|[dns_domain](variables.tf#L22)| DNS domain under which each application team DNS domain will be created. | <code>string</code> || <code>"example.org"</code> |
31
+
|[prefix](variables.tf#L33)| Customer name to use as prefix for resources' naming. | <code>string</code> || <code>"test-dns"</code> |
32
+
|[project_services](variables.tf#L39)| Service APIs enabled by default. | <code>list(string)</code> || <codetitle="[ "compute.googleapis.com", "dns.googleapis.com", ]">[…]</code> |
33
+
|[teams](variables.tf#L53)| List of application teams requiring their own Cloud DNS instance. | <code>list(string)</code> || <codetitle="[ "team1", "team2", ]">[…]</code> |
| project_id | GCP project id where to grant direct and delegated roles to the users listed in project_administrators. | <code>string</code> | ✓ ||
76
-
| delegated_role_grants | List of roles that project administrators will be allowed to grant/revoke. | <code>list(string)</code> | | <code title="[ "roles/storage.admin", "roles/storage.hmacKeyAdmin", "roles/storage.legacyBucketOwner", "roles/storage.objectAdmin", "roles/storage.objectCreator", "roles/storage.objectViewer", "roles/compute.admin", "roles/compute.imageUser", "roles/compute.instanceAdmin", "roles/compute.instanceAdmin.v1", "roles/compute.networkAdmin", "roles/compute.networkUser", "roles/compute.networkViewer", "roles/compute.orgFirewallPolicyAdmin", "roles/compute.orgFirewallPolicyUser", "roles/compute.orgSecurityPolicyAdmin", "roles/compute.orgSecurityPolicyUser", "roles/compute.orgSecurityResourceAdmin", "roles/compute.osAdminLogin", "roles/compute.osLogin", "roles/compute.osLoginExternalUser", "roles/compute.packetMirroringAdmin", "roles/compute.packetMirroringUser", "roles/compute.publicIpAdmin", "roles/compute.securityAdmin", "roles/compute.serviceAgent", "roles/compute.storageAdmin", "roles/compute.viewer", "roles/viewer" ]">[…]</code> |
77
-
| direct_role_grants | List of roles granted directly to project administrators. | <code>list(string)</code> || <codetitle="[ "roles/compute.admin", "roles/storage.admin", ]">[…]</code> |
78
-
| project_create | Create project instead of using an existing one. | <code>bool</code> || <code>false</code> |
79
-
| restricted_role_grant | Role grant to which the restrictions will apply. | <code>string</code> || <code>"roles/resourcemanager.projectIamAdmin"</code> |
|[project_id](variables.tf#L73)| GCP project id where to grant direct and delegated roles to the users listed in project_administrators. | <code>string</code> | ✓ ||
73
+
| [delegated_role_grants](variables.tf#L17) | List of roles that project administrators will be allowed to grant/revoke. | <code>list(string)</code> | | <code title="[ "roles/storage.admin", "roles/storage.hmacKeyAdmin", "roles/storage.legacyBucketOwner", "roles/storage.objectAdmin", "roles/storage.objectCreator", "roles/storage.objectViewer", "roles/compute.admin", "roles/compute.imageUser", "roles/compute.instanceAdmin", "roles/compute.instanceAdmin.v1", "roles/compute.networkAdmin", "roles/compute.networkUser", "roles/compute.networkViewer", "roles/compute.orgFirewallPolicyAdmin", "roles/compute.orgFirewallPolicyUser", "roles/compute.orgSecurityPolicyAdmin", "roles/compute.orgSecurityPolicyUser", "roles/compute.orgSecurityResourceAdmin", "roles/compute.osAdminLogin", "roles/compute.osLogin", "roles/compute.osLoginExternalUser", "roles/compute.packetMirroringAdmin", "roles/compute.packetMirroringUser", "roles/compute.publicIpAdmin", "roles/compute.securityAdmin", "roles/compute.serviceAgent", "roles/compute.storageAdmin", "roles/compute.viewer", "roles/viewer" ]">[…]</code> |
74
+
|[direct_role_grants](variables.tf#L53)| List of roles granted directly to project administrators. | <code>list(string)</code> || <codetitle="[ "roles/compute.admin", "roles/storage.admin", ]">[…]</code> |
75
+
|[project_create](variables.tf#L67)| Create project instead of using an existing one. | <code>bool</code> || <code>false</code> |
76
+
|[restricted_role_grant](variables.tf#L78)| Role grant to which the restrictions will apply. | <code>string</code> || <code>"roles/resourcemanager.projectIamAdmin"</code> |
| create_packer_vars | Create packer variables file using template file and terraform output. | <code>bool</code> || <code>false</code> |
81
-
| packer_account_users | List of members that will be allowed to impersonate Packer image builder service account in IAM format, i.e. 'user:{emailid}'. | <code>list(string)</code> || <code>[]</code> |
82
-
| packer_source_cidrs | List of CIDR ranges allowed to connect to the temporary VM for provisioning. | <code>list(string)</code> || <code>["0.0.0.0/0"]</code> |
83
-
| project_create | Create project instead of using an existing one. | <code>bool</code> || <code>true</code> |
84
-
| region | Default region for resources | <code>string</code> || <code>"europe-west1"</code> |
85
-
| root_node | The resource name of the parent folder or organization for project creation, in 'folders/folder_id' or 'organizations/org_id' format. | <code>string</code> || <code>null</code> |
86
-
| use_iap | Use IAP tunnel to connect to Compute Engine instance for provisioning. | <code>bool</code> || <code>true</code> |
75
+
|[project_id](variables.tf#L55)| Project id that references existing project. | <code>string</code> | ✓ ||
76
+
|[billing_account](variables.tf#L17)| Billing account id used as default for new projects. | <code>string</code> || <code>null</code> |
|[create_packer_vars](variables.tf#L31)| Create packer variables file using template file and terraform output. | <code>bool</code> || <code>false</code> |
79
+
|[packer_account_users](variables.tf#L37)| List of members that will be allowed to impersonate Packer image builder service account in IAM format, i.e. 'user:{emailid}'. | <code>list(string)</code> || <code>[]</code> |
80
+
|[packer_source_cidrs](variables.tf#L43)| List of CIDR ranges allowed to connect to the temporary VM for provisioning. | <code>list(string)</code> || <code>["0.0.0.0/0"]</code> |
81
+
|[project_create](variables.tf#L49)| Create project instead of using an existing one. | <code>bool</code> || <code>true</code> |
82
+
|[region](variables.tf#L60)| Default region for resources | <code>string</code> || <code>"europe-west1"</code> |
83
+
|[root_node](variables.tf#L66)| The resource name of the parent folder or organization for project creation, in 'folders/folder_id' or 'organizations/org_id' format. | <code>string</code> || <code>null</code> |
84
+
|[use_iap](variables.tf#L72)| Use IAP tunnel to connect to Compute Engine instance for provisioning. | <code>bool</code> || <code>true</code> |
87
85
88
86
## Outputs
89
87
90
88
| name | description | sensitive |
91
89
|---|---|:---:|
92
-
| builder_sa | Packer's service account email. ||
93
-
| compute_sa | Packer's temporary VM service account email. ||
94
-
| compute_subnetwork | Name of a subnetwork for Packer's temporary VM. ||
95
-
| compute_zone | Name of a compute engine zone for Packer's temporary VM. ||
90
+
|[builder_sa](outputs.tf#L17)| Packer's service account email. ||
91
+
|[compute_sa](outputs.tf#L22)| Packer's temporary VM service account email. ||
92
+
|[compute_subnetwork](outputs.tf#L27)| Name of a subnetwork for Packer's temporary VM. ||
93
+
|[compute_zone](outputs.tf#L32)| Name of a compute engine zone for Packer's temporary VM. ||
0 commit comments