2025-01-01から1ヶ月間の記事一覧

Terraform count if

Terraformにはifのような条件分岐がないものの、countを使うことで上記のことを実現できます。 Terraformでcountをifのように使う #Terraform - Qiita 2017 https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/master/main.tfvar.enable_nat_…

Terraform Provider Plugin Cache

https://developer.hashicorp.com/terraform/cli/config/config-file vi ~/.terraformrc plugin_cache_dir = "$HOME/.terraform.d/plugin-cache" mkdir ~/.terraform.d/plugin-cacheキャッシュが使われる terraform init ... - Using hashicorp/aws v5.83.1 …

terraform aws provider

aws_eip domain https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eipWarning: Argument is deprecated use domain attribute insteadvpc = true を domain = "vpc" に書き換えCan't configure a value for "domain": its valu…