Skip to content

Commit

Permalink
update readme file, variable and main. added 1 permission to the org …
Browse files Browse the repository at this point in the history
…role and enable 1 more api [ENG-45104] (#4)
  • Loading branch information
tonygc authored May 29, 2024
1 parent 4424e2c commit ff4e083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ No modules.
| <a name="input_drata_role_name"></a> [drata\_role\_name](#input\_drata\_role\_name) | Role name. | `string` | `"DrataReadOnly"` | no |
| <a name="input_gcp_org_domain"></a> [gcp\_org\_domain](#input\_gcp\_org\_domain) | GCP Organization domain. | `string` | n/a | yes |
| <a name="input_gcp_project_id"></a> [gcp\_project\_id](#input\_gcp\_project\_id) | Project identifier of the gcp organization. If it is not provided, the provider project is used. | `string` | `null` | no |
| <a name="input_gcp_services"></a> [gcp\_services](#input\_gcp\_services) | List of services to enable. | `list(string)` | <pre>[<br> "cloudresourcemanager.googleapis.com",<br> "compute.googleapis.com",<br> "admin.googleapis.com",<br> "sqladmin.googleapis.com",<br> "monitoring.googleapis.com"<br>]</pre> | no |
| <a name="input_gcp_services"></a> [gcp\_services](#input\_gcp\_services) | List of services to enable. | `list(string)` | <pre>[<br> "cloudresourcemanager.googleapis.com",<br> "compute.googleapis.com",<br> "admin.googleapis.com",<br> "sqladmin.googleapis.com",<br> "monitoring.googleapis.com",<br> "cloudasset.googleapis.com"<br>]</pre> | no |

## Outputs

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "google_organization_iam_custom_role" "drata_org_role" {
role_id = "${var.drata_role_name}OrganizationalRole"
title = "Drata Read-Only Organizational Role"
description = "Service Account with read-only access for Drata Autopilot to get organizational IAM data"
permissions = ["resourcemanager.organizations.getIamPolicy", "storage.buckets.get", "storage.buckets.getIamPolicy", "resourcemanager.folders.get", "resourcemanager.organizations.get"]
permissions = ["resourcemanager.organizations.getIamPolicy", "storage.buckets.get", "storage.buckets.getIamPolicy", "resourcemanager.folders.get", "resourcemanager.organizations.get", "cloudasset.assets.searchAllResources"]
org_id = data.google_organization.gcp_organization.org_id
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "connect_multiple_projects" {

variable "gcp_services" {
type = list(string)
default = ["cloudresourcemanager.googleapis.com", "compute.googleapis.com", "admin.googleapis.com", "sqladmin.googleapis.com", "monitoring.googleapis.com"]
default = ["cloudresourcemanager.googleapis.com", "compute.googleapis.com", "admin.googleapis.com", "sqladmin.googleapis.com", "monitoring.googleapis.com", "cloudasset.googleapis.com"]
description = "List of services to enable."
}

Expand Down

0 comments on commit ff4e083

Please sign in to comment.