Skip to content

Commit

Permalink
Add binary types via variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixroa committed Mar 22, 2021
1 parent c050be6 commit 1e1542e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 2 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Api Gateway rest api resource of `Regional` type
resource "aws_api_gateway_rest_api" "api" {
name = "${var.app_name}_platform"

binary_media_types = [
"*/*",
]
name = "${var.app_name}_platform"
binary_media_types = var.binary_media_types

endpoint_configuration {
types = ["REGIONAL"]
Expand Down
6 changes: 5 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ variable "api_stage" {}

variable "lb_dns_name" {}

variable "api_port" {}
variable "api_port" {}

variable "binary_media_types" {
default = ["*/*"]
}

0 comments on commit 1e1542e

Please sign in to comment.