Coder Social home page Coder Social logo

terraform-rbac-example's Introduction

Observações (em construção)

Documentação

Veja Sample Project for Confluent Terraform Provider que demonstra um passo a passo de como executar este e outros exemplos.

Requisitos

  • Service account criada e com as permissões necessárias para gerenciar as criações do script;
  • Confluent Cloud API Key para gerar os recursos;
  • Criar um arquivo terraform.tfvars para armazenamento de variáveis de execução;

Exemplo de terraform.tfvars

confluent_cloud_api_key    = "xxxx"
confluent_cloud_api_secret = "xxxx"
organization_id            = "xxxx-xxxx-xxxx-xxxx-xxxx"
environment_id             = "env-xxxx"
cluster_id                 = "lkc-xxxx"
keyfile                    = {}

Exemplo alternativo de terraform.tfvars - v1

bigquery_connectors = {
"conector_1" = {
confluent_cloud_api_key    = "xxxx"
confluent_cloud_api_secret = "xxxx"
organization_id            = "xxxx-xxxx-xxxx-xxxx-xxxx"
environment_id             = "env-xxxx"
cluster_id                 = "lkc-xxxx"
keyfile                    = {}
  }
}

Exemplo alternativo de terraform.tfvars - v2

cloud_api_key       = "123"
cloud_api_secret    = "123"
kafka_rest_endpoint = "https://pkc-123.us-central1.gcp.confluent.cloud:443"
kafka_id            = "lkc-123"
topics = {
  "script_terraform_multiple_topics" = {
    partitions_count = "9"
    config = {
      "cleanup.policy"                      = "delete"
      "delete.retention.ms"                 = "86400000"
      "max.compaction.lag.ms"               = "9223372036854775807"
      "max.message.bytes"                   = "2097164"
      "message.timestamp.after.max.ms"      = "9223372036854775807"
      "message.timestamp.before.max.ms"     = "9223372036854775807"
      "message.timestamp.difference.max.ms" = "9223372036854775807"
      "message.timestamp.type"              = "CreateTime"
      "min.compaction.lag.ms"               = "0"
      "min.insync.replicas"                 = "2"
      "retention.bytes"                     = "-1"
      "retention.ms"                        = "604800000"
      "segment.bytes"                       = "104857600"
      "segment.ms"                          = "604800000"
    }
  },
}

Exemplo alternativo de informar o provider externo ao main.tf criando um arquivo providers.tf

provider "confluent" {
  cloud_api_key = "123"
  cloud_api_secret = "123"
}

terraform-rbac-example's People

Contributors

ribeirohenrique avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.