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

feat: create a variable bool for create route #97

Closed IlyesDemineExtVeolia closed 7 months ago

IlyesDemineExtVeolia commented 7 months ago

Is your request related to a new offering from AWS?

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Is your request related to a problem? Please describe.

Describe the solution you'd like.

Add a conditional creation for route in the integrations bloc. Can be useful if we want some endpoint only in some environment.

Example:

module "api_gateway" {
  source = "terraform-aws-modules/apigateway-v2/aws"

  integrations = {
    "GET /" = {
      create_route   = false  # to control creation of route default true
    }
  }

  # ... omitted
}

Describe alternatives you've considered.

Additional context

IlyesDemineExtVeolia commented 7 months ago

https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/pull/98

github-actions[bot] commented 6 months 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.