Skip to content

Commit

Permalink
compatible with terraform 0.12 part 6
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnmol committed May 4, 2023
1 parent ac613c2 commit 34ee5d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/api_gateway_resource/api_gateway_api_key.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ resource "aws_api_gateway_usage_plan" "usage_plan" {
}

resource "aws_api_gateway_usage_plan_key" "usage_plan_key" {
key_id = "${aws_api_gateway_api_key.0.api_key.id}"
key_id = "${aws_api_gateway_api_key.api_key.id}"
key_type = "API_KEY"
usage_plan_id = "${aws_api_gateway_usage_plan.0.usage_plan.id}"
usage_plan_id = "${aws_api_gateway_usage_plan.usage_plan.id}"
count = "${var.enable && var.api_key_required ? 1 : 0}"
}
2 changes: 1 addition & 1 deletion apps/api_gateway_resource/api_gateway_integration.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_api_gateway_integration" "integration" {
http_method = "${aws_api_gateway_method.method[0].http_method}"
rest_api_id = "${var.api_gateway_rest_api_id}"
resource_id = "${aws_api_gateway_resource.0.resource.id}"
resource_id = "${aws_api_gateway_resource.resource.id}"
type = "${var.api_gateway_integration_type}"
integration_http_method = "${var.api_gateway_integration_method}"
uri = "${var.api_gateway_integration_uri}"
Expand Down

0 comments on commit 34ee5d9

Please sign in to comment.