lacework generate cloud-account gcp
Generate and/or execute Terraform code for GCP integration
Synopsis
Use this command to generate Terraform code for deploying Lacework into an GCP environment.
By default, this command interactively prompts for the required information to setup the new cloud account. In interactive mode, this command will:
- Prompt for the required information to setup the integration
- Generate new Terraform code using the inputs
- Optionally, run the generated Terraform code:
- If Terraform is already installed, the version is verified as compatible for use
- If Terraform is not installed, or the version installed is not compatible, a new version will be installed into a temporary location
- Once Terraform is detected or installed, Terraform plan will be executed
- The command will prompt with the outcome of the plan and allow to view more details or continue with Terraform apply
- If confirmed, Terraform apply will be run, completing the setup of the cloud account
This command can also be run in noninteractive mode. See help output for more details on the parameter value(s) required for Terraform code generation.
lacework generate cloud-account gcp [flags]
Options
--apply run terraform apply without executing plan or prompting
--audit_log enable audit log integration
--audit_log_integration_name string specify a custom audit log integration name
--bucket_lifecycle_rule_age int specify the lifecycle rule age (default -1)
--bucket_region string specify bucket region
--configuration enable configuration integration
--configuration_integration_name string specify a custom configuration integration name
--custom_bucket_name string override prefix based storage bucket name generation with a custom name
--custom_filter string Audit Log filter which supersedes all other filter options when defined
--enable_force_destroy_bucket enable force bucket destroy
--enable_ubla enable universal bucket level access(ubla) (default true)
--existing_bucket_name string specify existing bucket name
--existing_service_account_name string specify existing service account name
--existing_service_account_private_key string specify existing service account private key (base64 encoded)
--existing_sink_name string specify existing sink name
-e, --folders_to_exclude stringArray List of root folders to exclude for an organization-level integration
-i, --folders_to_include stringArray list of root folders to include for an organization-level integration
--google_workspace_filter filter out Google Workspace login logs from GCP Audit Log sinks (default true)
-h, --help help for gcp
--include_root_projects Disables logic that includes root-level projects if excluding folders (default true)
--k8s_filter filter out GKE logs from GCP Audit Log sinks (default true)
--organization_id string specify the organization id (only set if organization_integration is set)
--organization_integration enable organization integration
--output string location to write generated content (default is ~/lacework/gcp)
--prefix string prefix that will be used at the beginning of every generated resource
--project_id string specify the project id to be used to provision lacework resources (required)
--service_account_credentials string specify service account credentials JSON file path (leave blank to make use of google credential ENV vars)
--use_pub_sub use pub/sub for the audit log data rather than bucket
--wait_time string amount of time to wait before the next resource is provisioned
Options inherited from parent commands
-a, --account string account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
-k, --api_key string access key id
-s, --api_secret string secret access key
--api_token string access token (replaces the use of api_key and api_secret)
--debug turn on debug logging
--json switch commands output from human-readable to json format
--nocache turn off caching
--nocolor turn off colors
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
--organization access organization level data sets (org admins only)
-p, --profile string switch between profiles configured at ~/.lacework.toml
--subaccount string sub-account name inside your organization (org admins only)
SEE ALSO
- lacework generate cloud-account - Generate cloud integration IaC