はじめに terraform.tfstate とは Terraform で管理しているインフラの状態を管理しているファイルで中身は以下のような JSON ファイルとなっている。 { "version": 1, "serial": 1, "modules": [ { "path": [ "root" ], "outputs": {}, "resources": { "aws_s3_bucket.b": { "type": "aws_s3_bucket", "primary": { "id": "foo-bucket", "attributes": { "acl": "private", "bucket": "foo-bucket", "force_destroy": "true", "hosted_zone_id": "xxxxxxxxxxxxxxxxxxxxxxx", "id": "foo