AWS
Terraform

terraform-provider-awsでTERRAFORM CRASH

概要

それは突然やってきた。

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

半日ほど時間をかけてようやく解決したのでシェア。

環境

  • terraform-provider-aws 1.9.0

対策

  • terrform initを使用してterraform-provider-aws1.13.0以降にupdateで解消します。

注意

当たり前ですが、以下のようにバージョニングを固定しているアップデートされないので注意

provider "aws" {
  version = "~> 1.9.0"  
  region  = "ap-northeast-1"
}

参考

https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md#1130-march-28-2018
https://github.com/terraform-providers/terraform-provider-aws/pull/3954