turbot / terraform-provider-turbot

Terraform Turbot provider
https://www.terraform.io/docs/providers/turbot/
Mozilla Public License 2.0
7 stars 4 forks source link

[Bug Fix] turbot_file: terraform apply fails to update `content` correctly for arrays that are part of the content #166

Closed SumitPopat closed 9 months ago

SumitPopat commented 9 months ago

TF version - 0.12 Turbot Guardrails Provider - 1.10.0 config:

resource "turbot_file" "igw_accounts" {
  parent  = "tmod:@turbot/turbot#/"
  title   = "IGW Accounts"
  akas    = ["igw_accounts"]
  content = <<EOT
{
  "igw_accounts": [
    "123123123123",
    "234234234234"
  ]
}
EOT
}

Updating the config to:

resource "turbot_file" "igw_accounts" {
  parent  = "tmod:@turbot/turbot#/"
  title   = "IGW Accounts"
  akas    = ["igw_accounts"]
  content = <<EOT
{
  "igw_accounts": [
    "123123123123"
  ]
}
EOT
}

does not update the content in Guardrails.