feat(serviceAccount): GCP service account module [ENG-44162]
#2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This module automates the steps needed to create a service account on the customers GCP worskapce.
This
devopsPR explains what it does in a better way. #158.Check this help article if needed https://help.drata.com/en/articles/4994112-gcp-connection-details.
The readme file looks like this
gcp-terraform-drata-setup
GCP terraform module to create the Drata Read Only service account.
Example Usage
The example below uses
ref=main(which is appended in the URL), but it is recommended to use a specific tag version (i.e.ref=1.0.0) to avoid breaking changes. Go to the release page for a list of published versions. releases page for a list of published versions.Replace
YOUR_ORGANIZATION_DOMAINwith the organization domain. i.e.your_org.com.After you apply this terraform, run the following command to retrieve the key file
drata-gcp-private-key.jsonSetup
The following steps demonstrate how to connect GCP in Drata when using this terraform module.
Organization Administrator,Service Account Admin,Service Account Key AdminandService Usage Admin.maininref=mainwith the latest version from the releases page.YOUR_ORGANIZATION_DOMAINwith the GCP organization domain.YOUR_PROJECT_IDif the desired project is not the default project in your organization.drata_role_nameif you don't want the role added to be the default:DrataReadOnly.terraform initto download/update the module.terraform applyand IMPORTANT review the plan output before typingyes.terraform output -raw drata_service_account_key > drata-gcp-private-key.json.drata-gcp-private-key.jsonfile.Save & Test Connectionbutton.Requirements
Providers
Modules
No modules.
Resources
Inputs
string"DrataReadOnly"stringstringnulllist(string)Outputs