You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_dataproc_metastore_service" {
source="./modules/google-beta/r/google_dataproc_metastore_service"# labels - (optional) is a type of map of stringlabels={}
# location - (optional) is a type of stringlocation=null# network - (optional) is a type of stringnetwork=null# port - (optional) is a type of numberport=null# project - (optional) is a type of stringproject=null# service_id - (required) is a type of stringservice_id=null# tier - (optional) is a type of stringtier=nullhive_metastore_config=[{
config_overrides = {}
kerberos_config = [{
keytab = [{
cloud_secret =null
}]
krb5_config_gcs_uri =null
principal =null
}]
version =null
}]
maintenance_window=[{
day_of_week =null
hour_of_day =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"labels" {
description="(optional) - User-defined labels for the metastore service."type=map(string)
default=null
}
variable"location" {
description="(optional) - The location where the autoscaling policy should reside.\nThe default value is 'global'."type=stringdefault=null
}
variable"network" {
description="(optional) - The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:\n\n\"projects/{projectNumber}/global/networks/{network_id}\"."type=stringdefault=null
}
variable"port" {
description="(optional) - The TCP port at which the metastore service is reached. Default: 9083."type=numberdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"service_id" {
description="(required) - The ID of the metastore service. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),\nand hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between\n3 and 63 characters."type=string
}
variable"tier" {
description="(optional) - The tier of the service. Possible values: [\"DEVELOPER\", \"ENTERPRISE\"]"type=stringdefault=null
}
variable"hive_metastore_config" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
config_overrides =map(string)
kerberos_config =list(object(
{
keytab =list(object(
{
cloud_secret =string
}
))
krb5_config_gcs_uri =string
principal =string
}
))
version =string
}
))
default=[]
}
variable"maintenance_window" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
day_of_week =string
hour_of_day =number
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_dataproc_metastore_service""this" {
# labels - (optional) is a type of map of stringlabels=var.labels# location - (optional) is a type of stringlocation=var.location# network - (optional) is a type of stringnetwork=var.network# port - (optional) is a type of numberport=var.port# project - (optional) is a type of stringproject=var.project# service_id - (required) is a type of stringservice_id=var.service_id# tier - (optional) is a type of stringtier=var.tierdynamic"hive_metastore_config" {
for_each=var.hive_metastore_configcontent {
# config_overrides - (optional) is a type of map of stringconfig_overrides=hive_metastore_config.value["config_overrides"]
# version - (required) is a type of stringversion=hive_metastore_config.value["version"]
dynamic"kerberos_config" {
for_each=hive_metastore_config.value.kerberos_configcontent {
# krb5_config_gcs_uri - (required) is a type of stringkrb5_config_gcs_uri=kerberos_config.value["krb5_config_gcs_uri"]
# principal - (required) is a type of stringprincipal=kerberos_config.value["principal"]
dynamic"keytab" {
for_each=kerberos_config.value.keytabcontent {
# cloud_secret - (required) is a type of stringcloud_secret=keytab.value["cloud_secret"]
}
}
}
}
}
}
dynamic"maintenance_window" {
for_each=var.maintenance_windowcontent {
# day_of_week - (required) is a type of stringday_of_week=maintenance_window.value["day_of_week"]
# hour_of_day - (required) is a type of numberhour_of_day=maintenance_window.value["hour_of_day"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}