記事:
原因:
解決:
terraform state rm data.aws_subnet_ids.main
記事:
原因: providerのstate形式が変わっている。以下で問題が出た。
解決:
provider"random" { version="< 3" } provider"null" { version="< 3" }
rm -rf .terraform terraform init
terraform version Terraform v0.12.31 + provider.aws v3.75.2 + provider.null v2.1.2 + provider.random v2.3.1
output "db_main_password" { value = aws_db_instance.main.password sensitive = true }
Error installing provider "aws": openpgp: signature made by unknown entity.
tfenv install latest:^0.11 # 0.11.15ならOK # 問題のあったバージョンは削除 tfenv uninstall 0.11.15-oci
Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512
rm -rf .terraform tfenv install latest:^0.12 terraform init
Error: Incorrect attribute value type Inappropriate value for attribute "var1": string required.
output "debug_var1" { value = local.var1 }
terraform refresh
var1 = flatten([local.a1, local.b2])