0

Terraform には次の構成があります。

// ...

resource "aws_api_gateway_integration_response" "post_pet_200_integration" {
  rest_api_id = "${aws_api_gateway_rest_api.my_pets_api.id}"
  resource_id = "${aws_api_gateway_resource.pets_resource.id}"
  http_method = "${aws_api_gateway_method.post_pet_method.http_method}"
  status_code = "${aws_api_gateway_method_response.post_pet_200.status_code}"

  response_parameters = "foo"
}

を実行するterraform applyと、次のようになります。

エラー:

  • aws_api_gateway_integration_response.post_pet_200_integration: : 無効または不明なキー: response_parameters

aws_api_gateway_integration_responseに関するドキュメントには次のように書かれています。

response_parameters <- (オプション) 呼び出し元に送り返すことができる応答パラメーターを表します

この変数を使用できないのはなぜですか?


私は次のことを試しました:キャメルケース、sあり/なし、代わりにaws_api_gateway_method_responseまたはaws_api_gateway_deploymentブロックを入れ、文字列の代わりにテラフォームmap変数タイプを入れました。しかし、毎回同じエラーが発生します。また、この構成からインスピレーションを得ようとしました: https://github.com/awslabs/aws-apigateway-importer、それでも同じエラーが発生しました。

編集: Terraform のバージョンは 0.6.14 です。

4

1 に答える 1