JamesWoolfenden / terraform-gcp-bigtable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-gcp-bigtable

Build Status Latest Release GitHub tag (latest SemVer) Terraform Version Infrastructure Tests pre-commit checkov Infrastructure Tests Infrastructure Tests

A working bigtable module with example.

Usage

Add module.bigtable.tf to your code:-

module "bigtable" {
    source      ="jameswoolfenden/bigtable/gcp"
    version     = "0.1.1"
    name        = "pike"
}

Requirements

No requirements.

Providers

Name Version
google n/a

Modules

No modules.

Resources

Name Type
google_bigtable_instance.bigtable_instance resource
google_bigtable_table.bigtable_table resource
google_project_iam_member.bigtable_user resource
google_project_iam_member.publisher resource
google_service_account.bigtable resource

Inputs

Name Description Type Default Required
account_id n/a string n/a yes
account_name n/a string n/a yes
cluster n/a
object({
cluster_id = string
storage_type = string
zone = string
autoscaling_config = object({
min_nodes = number
max_nodes = number
cpu_target = string
storage_target = string
})

})
n/a yes
deletion_protection n/a bool true no
instance_display_name n/a string n/a yes
instance_name n/a string n/a yes
kms_key_id n/a string n/a yes
labels n/a map(any) n/a yes
name n/a string n/a yes
project_id n/a string n/a yes
tables n/a
list(object({
name = string
column_family = string
}))
n/a yes

Outputs

No outputs.

Role and Permissions

The Terraform resource required is:

resource "google_project_iam_custom_role" "terraform_pike" {
  project     = "pike"
  role_id     = "terraform_pike"
  title       = "terraform_pike"
  description = "A user with least privileges"
  permissions = [
    "bigtable.clusters.list",
    "bigtable.instances.create",
    "bigtable.instances.delete",
    "bigtable.instances.get",
    "bigtable.instances.update",
    "bigtable.tables.create",
    "bigtable.tables.delete",
    "bigtable.tables.get",
    "iam.serviceAccounts.create",
    "iam.serviceAccounts.delete",
    "iam.serviceAccounts.get",
    "iam.serviceAccounts.update",
    "resourcemanager.projects.getIamPolicy",
    "resourcemanager.projects.setIamPolicy"
  ]
}

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2019-2023 James Woolfenden

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

James Woolfenden
James Woolfenden

About

License:Apache License 2.0


Languages

Language:HCL 64.5%Language:Makefile 25.0%Language:PowerShell 4.4%Language:Python 3.5%Language:Shell 2.7%