-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add default value set autoclass to optional (already in tf) fix comment wip fix: fixed the lifecycle policy condition wip: started the implementation of interface help wip: implement notificaitons feat: add new datamodel for the bucket variable fix: removed storage class standard as it is already set by default
- Loading branch information
1 parent
e763105
commit c853b8f
Showing
5 changed files
with
132 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.terraform* | ||
terraform.* | ||
test.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,41 @@ locals { | |
project_id = "PROJECT_ID" # Replace this with your actual project id | ||
} | ||
|
||
resource "random_string" "prefix" { | ||
length = 4 | ||
upper = false | ||
special = false | ||
} | ||
|
||
provider "google" { | ||
user_project_override = true | ||
billing_project = local.project_id | ||
} | ||
|
||
resource "random_string" "suffix" { | ||
length = 4 | ||
upper = false | ||
special = false | ||
} | ||
|
||
module "datalake" { | ||
source = "artefactory/datalake/google" | ||
|
||
project_id = local.project_id | ||
|
||
# Naming convention | ||
naming_convention = { | ||
"prefix": local.project_id | ||
"suffix": random_string.prefix.result | ||
"prefix" : local.project_id | ||
"suffix" : random_string.suffix.result | ||
} | ||
|
||
# List of buckets to create | ||
buckets = [ | ||
"source-a", | ||
"source-b" | ||
buckets_config = [ | ||
{ | ||
"bucket_name" : "sourcea", | ||
"iam_rules" : [ | ||
{ "role" = "roles/storage.admin", "principals" = ["user:[email protected]"] } | ||
] | ||
"autoclass" : false, | ||
"lifecycle_rules" : [ | ||
], | ||
"notification_topic" : "hello" | ||
}, | ||
{ | ||
"bucket_name" : "sourceb", | ||
"iam_rules" : [{ "role" = "roles/storage.admin", "principals" = ["user:[email protected]"] }] | ||
"autoclass" : false, | ||
"lifecycle_rules" : [], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters