Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criar o módulo groundwork #2

Open
gomex opened this issue Jul 18, 2021 · 2 comments
Open

Criar o módulo groundwork #2

gomex opened this issue Jul 18, 2021 · 2 comments
Assignees

Comments

@gomex
Copy link
Contributor

gomex commented Jul 18, 2021

DoD:

@snifbr
Copy link
Contributor

snifbr commented Aug 22, 2021

Tarde @afonsoaugusto e @gomex , passando para avisar que vou trabalhar nesta issue na quarta 25/08/2021 - 20:00 GMT-3.

@afonsoaugusto
Copy link
Collaborator

afonsoaugusto commented Aug 23, 2021

Opa @snifbr e @gomex, acho que seria interessante incluir que este modulo já pode considerar que ele será multi-provider (ou multi-cloud).
Sendo neste caso, penso eu que pode ter uma variavel chamada cloud_provider ou cloud (o nome provider é reservado, por isso não pode ser ele) com os valores validos: GCP inicialmente pq não temos outro provider

variable "cloud_provider" {
  type        = string
  default     = "GCP"
  description = "Name of the cloud provider (GCP)"
  sensitive   = false
  validation {
    condition     = contains(["GCP"], var.cloud_provider)
    error_message = "Valid values for var: cloud_provider are (GCP)."
  }
}

output "cloud_provider" {
  value = var.cloud_provider
}

Ai se informado errado, a mensagem é assim:

Screenshot from 2021-08-23 15-10-48

@gomex gomex moved this from Backlog to To Do in Observabilidade Sep 4, 2021
@lgfa29 lgfa29 removed this from To Do in Observabilidade May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants