diff --git a/main.tf b/main.tf index 8ca45da..c25e01c 100644 --- a/main.tf +++ b/main.tf @@ -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"] diff --git a/variables.tf b/variables.tf index 5bf31c9..da6f08b 100644 --- a/variables.tf +++ b/variables.tf @@ -10,4 +10,8 @@ variable "api_stage" {} variable "lb_dns_name" {} -variable "api_port" {} \ No newline at end of file +variable "api_port" {} + +variable "binary_media_types" { + default = ["*/*"] +} \ No newline at end of file