Skip to content

Commit d470154

Browse files
committed
add flag for execute endpoint
1 parent a5ef09e commit d470154

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

infrastructure/terraform/components/api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ No requirements.
1414
| <a name="input_commit_id"></a> [commit\_id](#input\_commit\_id) | The commit to deploy. Must be in the tree for branch\_name | `string` | `"HEAD"` | no |
1515
| <a name="input_component"></a> [component](#input\_component) | The variable encapsulating the name of this component | `string` | `"supapi"` | no |
1616
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A map of default tags to apply to all taggable resources within the component | `map(string)` | `{}` | no |
17+
| <a name="input_disable_gateway_execute_endpoint"></a> [disable\_gateway\_execute\_endpoint](#input\_disable\_gateway\_execute\_endpoint) | Disable the execution endpoint for the API Gateway | `bool` | `true` | no |
1718
| <a name="input_enable_backups"></a> [enable\_backups](#input\_enable\_backups) | Enable backups | `bool` | `false` | no |
1819
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the tfscaffold environment | `string` | n/a | yes |
1920
| <a name="input_eventpub_control_plane_bus_arn"></a> [eventpub\_control\_plane\_bus\_arn](#input\_eventpub\_control\_plane\_bus\_arn) | ARN of the EventBridge control plane bus for eventpub | `string` | `""` | no |

infrastructure/terraform/components/api/api_gateway_rest_api.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ resource "aws_api_gateway_rest_api" "main" {
22
name = local.csi
33
body = local.openapi_spec
44
description = "Suppliers API"
5-
disable_execute_api_endpoint = true
5+
disable_execute_api_endpoint = var.disable_gateway_execute_endpoint
66
}

infrastructure/terraform/components/api/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,9 @@ variable "eventpub_control_plane_bus_arn" {
140140
description = "ARN of the EventBridge control plane bus for eventpub"
141141
default = ""
142142
}
143+
144+
variable "disable_gateway_execute_endpoint" {
145+
type = bool
146+
description = "Disable the execution endpoint for the API Gateway"
147+
default = true
148+
}

0 commit comments

Comments
 (0)