Skip to content

Commit

Permalink
create_lf_resource variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Poluri committed Feb 26, 2025
1 parent 5d3ab9b commit 172d647
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

resource "aws_lakeformation_resource" "apiary_data_bucket" {
for_each = {
for_each = var.create_lf_resource ? {
for schema in local.schemas_info : "${schema["schema_name"]}" => schema
}
} : {}
arn = aws_s3_bucket.apiary_data_bucket[each.key].arn

hybrid_access_enabled = true
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,12 @@ variable "rw_ingress_cidr" {
default = []
}

variable "create_lf_resource" {
description = "Register data buckets in LakeFormation."
type = bool
default = false
}

variable "disable_glue_db_init" {
description = "Glue databases are created programatically by default in hms-readwrite bootstrap init action. Setting this variable to true will disable the hms-readwrite bootstrap init action and create Glue databases via Terraform."
type = bool
Expand Down

0 comments on commit 172d647

Please sign in to comment.