Skip to content

refactor(GCP): convert templates into TF Modules#50

Merged
afiune merged 10 commits intomasterfrom
afiune/49/GCP-Modules
Jul 17, 2020
Merged

refactor(GCP): convert templates into TF Modules#50
afiune merged 10 commits intomasterfrom
afiune/49/GCP-Modules

Conversation

@afiune
Copy link
Contributor

@afiune afiune commented Jul 10, 2020

User Story

As a Lacework user that uses Terraform to configure Lacework and Google Cloud resources,
I would like to have reusable modules that I can plug-and-play into my internal Terraform plans,
So I don't have to clone this repository and I can use all my best practices to use Terraform internally.

Create a GCP Config Integration (Project Level)

provider "google" {}

provider "lacework" {}

module "gcp_project_level_config" {
	source = "https://github.com/lacework/terraform-provisioning/gcp/modules/config"
}

Create a GCP Config Integration (Organization Level)

provider "google" {}

provider "lacework" {}

module "gcp_organization_level_config" {
	source          = "https://github.com/lacework/terraform-provisioning/gcp/modules/config"
	org_integration = true
	organization_id = "my-organization-id"
}

Create a GCP Audit Log Integration (Project Level)

provider "google" {}

provider "lacework" {}

module "gcp_project_level_audit_log" {
	source               = "https://github.com/lacework/terraform-provisioning/gcp/modules/audit_log"
	bucket_force_destroy = true
}

Create a GCP Audit Log Integration (Organization Level)

provider "google" {}

provider "lacework" {}

module "gcp_project_level_audit_log" {
	source               = "https://github.com/lacework/terraform-provisioning/gcp/modules/audit_log"
	bucket_force_destroy = true
	org_integration      = true
	organization_id      = "my-organization-id"
}

JIRA: ALLY-148
Closes #49

Signed-off-by: Salim Afiune Maya afiune@lacework.net

@afiune afiune added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 10, 2020
@afiune afiune self-assigned this Jul 10, 2020
@afiune afiune force-pushed the afiune/49/GCP-Modules branch from 12d6c01 to 27ddb53 Compare July 10, 2020 22:59
@afiune afiune changed the title refactor(GCP): New Modules refactor(GCP): convert templates into TF Modules Jul 10, 2020
@afiune afiune force-pushed the afiune/49/GCP-Modules branch from 27ddb53 to 89b716b Compare July 11, 2020 00:38
As a Lacework user that uses Terraform to configure Lacework and Google Cloud resources,
I would like to have reusable modules that I can plug-and-play into my internal Terraform plans,
So I don't have to clone this repository and I can use all my best practices to use Terraform internally.

JIRA: ALLY-148

Closes #49

Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch from 89b716b to d7b83f7 Compare July 11, 2020 00:42
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.

Great work @afiune ⭐ 👍

afiune added 2 commits July 15, 2020 12:40
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch 2 times, most recently from 9e956d6 to f6e393a Compare July 16, 2020 00:44
afiune added 2 commits July 15, 2020 18:57
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch 3 times, most recently from c796bf9 to cf5d91c Compare July 16, 2020 02:07
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch 2 times, most recently from 26b3916 to 85de09e Compare July 16, 2020 15:57
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch 3 times, most recently from 2177b4f to eadc074 Compare July 16, 2020 21:01
afiune added 2 commits July 16, 2020 15:53
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch from ddc0f47 to cc10dd0 Compare July 16, 2020 21:53
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
@afiune afiune force-pushed the afiune/49/GCP-Modules branch from 9453b03 to 5db2372 Compare July 16, 2020 22:44
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.

Nice @afiune !!! 👍

@afiune afiune merged commit b938e9a into master Jul 17, 2020
@afiune afiune deleted the afiune/49/GCP-Modules 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

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(GCP): Create Modules

2 participants