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

Invalid Configuration for Read-Only Attribute #8

Open
antonionovaesjr opened this issue Jun 17, 2024 · 0 comments
Open

Invalid Configuration for Read-Only Attribute #8

antonionovaesjr opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working database

Comments

@antonionovaesjr
Copy link

O que acontece ?

Ao tentar definir um tamanho e um tipo ao disco de uma replica DBaaS, o terraform diz que esses parâmetros são somente leitura

O que é esperado ?

Aceitar o valor conforme sugerido na documentação e criar a replica com esse valor

Doc: https://registry.terraform.io/providers/MagaluCloud/mgc/latest/docs

Como reproduzir:

Executar o código abaixo:

esource "mgc_dbaas_replicas" "this" {
  depends_on = [mgc_dbaas_instances.this]
  # for_each   = var.replicas_enable ? local.replca_map: {}
  count     = var.replicas_enable ? 1 : 0
  name      = "${mgc_dbaas_instances.this[0].name}-rep-${count.index}"
  source_id = mgc_dbaas_instances.this[0].id
  volume = {
     size = 50
     type  ="CLOUD_NVME_15K"
  }
  lifecycle {
    precondition {
      condition     = mgc_dbaas_instances.this[0].status != "ERROR"
      error_message = "Status of dbaas master can't be error"
    }
  }
}

@lfpicoloto1 lfpicoloto1 added the bug Something isn't working label Jul 24, 2024
@lfpicoloto1 lfpicoloto1 added this to the Basic Infrastructure Connected milestone Jul 24, 2024
@lfpicoloto1 lfpicoloto1 self-assigned this Jul 24, 2024
@lfpicoloto1 lfpicoloto1 moved this to Backlog in Terraform Roadmap Jul 24, 2024
@lfpicoloto1 lfpicoloto1 removed this from the Basic Infrastructure Connected milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database
Projects
None yet
Development

No branches or pull requests

2 participants