Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gcp): activate required apis correctly #52

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Jul 27, 2020

When doing some deep testing of the GCP modules, one use-case we have seen
with our customers is the creation of a new GCP project that needs to be linked
to their Lacework account to be monitored right after its creation.
For example:

provider "google" {}

provider "lacework" {}

resource "google_project" "new" {
	name       = "new-project"
	project_id = "project-123"
	org_id     = "1234567890"
}

module "new_project_gcp_config" {
	source     = "git::https://github.com/lacework/terraform-provisioning.git//gcp/modules/config"
	project_id = google_project.new.id
}

The above example will create a new Google Cloud project and configure it to
be monitored by Lacework.

This scenario requires the service_account module to have the following APIs enabled:

  • serviceusage.googleapis.com
  • cloudresourcemanager.googleapis.com

Signed-off-by: Salim Afiune Maya [email protected]

@afiune afiune added the bug Something isn't working label Jul 27, 2020
@afiune afiune requested a review from scottford-lw July 27, 2020 13:00
@afiune afiune self-assigned this Jul 27, 2020
Copy link
Contributor

@scottford-lw scottford-lw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@afiune afiune merged commit 38b57ac into master Jul 27, 2020
@afiune afiune deleted the afiune/gcp/fix-required-apis branch July 29, 2020 13:18
@afiune afiune mentioned this pull request Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants