terraform-aws-modules / terraform-aws-apigateway-v2

Terraform module to create AWS API Gateway v2 (HTTP/WebSocket) πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/apigateway-v2/aws
Apache License 2.0
148 stars 200 forks source link

Provide a Way to create a route without integrations #69

Closed riosje closed 2 years ago

riosje commented 2 years ago

Description

I'm trying to configure a CORS policy which need an OPTIONS method on the path, but this do not require any kind of integration in my case, by default this module and as far as I can understand de docs the routes are always created with an integration

I tried the following possible configs:

Is there a way to create a route without any kind of integration?

Versions

Reproduction Code [Required]

Creating an integration with this setting.

  integrations = {
    "OPTIONS /api/{proxy+}" = {
      integration_method     = "OPTIONS"
      payload_format_version = "1.0"
      authorization          = false
  }
}
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 2 years ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.